diff --git a/server_status/api.py b/server_status/api.py index 4ae5cee..dfdc516 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -20,7 +20,7 @@ try: for line in os_release.split("\n"): if line.startswith("NAME="): os_name = line.split("=")[1].replace('"', '') - elif line.startswith("VERSION="): + elif line.startswith("VERSION_ID="): os_version = line.split("=")[1].replace('"', '') except FileNotFoundError: os_name = platform.system()