From 27fa0104a4a37fb542f5c545215b33de89f1e74d Mon Sep 17 00:00:00 2001 From: Mauricio Date: Mon, 3 Aug 2020 20:32:13 -0400 Subject: [PATCH] use fallback HDID in case of unsupported OS --- hardware.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hardware.py b/hardware.py index 979dff5..548e73f 100644 --- a/hardware.py +++ b/hardware.py @@ -12,4 +12,7 @@ def get_hdid(): return value[0] elif os.name == "posix": - return os.popen("cat /var/lib/dbus/machine-id").read().rstrip() \ No newline at end of file + return os.popen("cat /var/lib/dbus/machine-id").read().rstrip() + + else: + return "(%s) no u jm" % os.name \ No newline at end of file