Skip to content

Commit ceeee0c

Browse files
Thomas Gamaufartemlos
authored andcommitted
Fix error if API returns return code 1 as int (#12)
1 parent bebd483 commit ceeee0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

licensing/methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def create_trial_key(token, product_id, machine_code):
8181

8282
jobj = json.loads(response)
8383

84-
if jobj == None or jobj["result"] == "1":
84+
if jobj == None or str(jobj["result"]) == "1":
8585
if jobj != None:
8686
return (None, jobj["message"])
8787
else:

0 commit comments

Comments
 (0)