Skip to content

Commit a5d86c2

Browse files
authored
Fix fetch online users function
1 parent b91d2a2 commit a5d86c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keyauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def fetchOnline(self):
431431
json = jsond.loads(response)
432432

433433
if json["success"]:
434-
if json["users"]["0"]:
434+
if len(json["users"]) == 0:
435435
return None ## THIS IS ISSUE ON KEYAUTH SERVER SIDE 6.8.2022 so it will return none if it is not an array.
436436
else:
437437
return json["users"]

0 commit comments

Comments
 (0)