Skip to content

Commit 52c3047

Browse files
author
mak6969
authored
Merge pull request #19 from zegevlier/patch-1
Fix broken json
2 parents c19bd72 + e4afc7c commit 52c3047

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

keyauth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import json # json
1+
import json as jsond # json
22

33
import binascii # hex encoding
44

@@ -53,7 +53,7 @@ def init(self):
5353

5454
response = encryption.decrypt(response, self.secret, init_iv)
5555

56-
json = json.loads(response)
56+
json = jsond.loads(response)
5757

5858
if not json["success"]:
5959
print(json["message"])
@@ -79,7 +79,7 @@ def login(self, key, hwid=None):
7979

8080
response = encryption.decrypt(response, self.secret, init_iv)
8181

82-
json = json.loads(response)
82+
json = jsond.loads(response)
8383

8484
if json["success"]:
8585
self.__load_user_data(json["info"])

0 commit comments

Comments
 (0)