This commit is contained in:
angelblue05 2015-12-26 01:22:25 -06:00
parent 8f8cdbaa88
commit 47976c81be

View file

@ -79,7 +79,8 @@ class ClientInfo():
try:
GUID = open(GUID_file)
except IOError: # machine_guid does not exists.
except Exception as e: # machine_guid does not exists.
self.logMsg("Generating a new deviceid: %s" % e, 1)
clientId = str("%012X" % uuid4())
GUID = open(GUID_file, 'w')
GUID.write(clientId)