use fallback HDID in case of unsupported OS
This commit is contained in:
parent
61387bf18b
commit
27fa0104a4
@ -12,4 +12,7 @@ def get_hdid():
|
|||||||
return value[0]
|
return value[0]
|
||||||
|
|
||||||
elif os.name == "posix":
|
elif os.name == "posix":
|
||||||
return os.popen("cat /var/lib/dbus/machine-id").read().rstrip()
|
return os.popen("cat /var/lib/dbus/machine-id").read().rstrip()
|
||||||
|
|
||||||
|
else:
|
||||||
|
return "(%s) no u jm" % os.name
|
Loading…
Reference in New Issue
Block a user