Update mystats.py

This commit is contained in:
Ayush Saini 2022-05-29 13:41:26 +05:30 committed by GitHub
parent 14dbbaf9ad
commit 1a5c89ecca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -322,7 +322,7 @@ def updateTop3Names(ids):
if data is not None:
try:
name = json.loads(data.read())["profileDisplayString"]
if (not value):
if (not name):
raise ValueError
except ValueError:
names.append("???")