diff --git a/licensing/methods.py b/licensing/methods.py index 0b4f5a5..f7b2ee0 100644 --- a/licensing/methods.py +++ b/licensing/methods.py @@ -1422,7 +1422,7 @@ def GetMachineCode(v=1): machineGUID = Helpers.__read_registry_value(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Cryptography", "MachineGuid") if machineGUID != None and machineGUID != "": - HelperMethods.get_SHA256(machineGUID) + return HelperMethods.get_SHA256(machineGUID) return None else: return HelperMethods.get_SHA256(seed) @@ -1464,6 +1464,9 @@ def IsOnRightMachine(license_key, is_floating_license = False, allow_overdraft=F current_mid = Helpers.GetMachineCode(v) else: current_mid = custom_machine_code + + if current_mid is None: + return False if license_key.activated_machines == None: return False