penn5 / miunlock

Test code to talk to unlock.update.miui.com
https://unlock.update.miui.com
50 stars 55 forks source link

Python error #1

Closed zainarbani closed 5 years ago

zainarbani commented 5 years ago

Xiaomi server says: An unlocked device is an easy target for malware which may damage your device or cause financial loss. It says that the unlock will wipe data. Press Ctrl-C to cancel, or enter to continue. Traceback (most recent call last): File "main.py", line 83, in data = r.run() File "/home/mint/Downloads/miunlock-master/request.py", line 110, in run logging.error("invalid code != 0: %s", data[code]) NameError: name 'code' is not defined