mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
handle null name in leaderboard
This commit is contained in:
parent
645b41d9a4
commit
14dbbaf9ad
1 changed files with 3 additions and 1 deletions
4
dist/ba_root/mods/stats/mystats.py
vendored
4
dist/ba_root/mods/stats/mystats.py
vendored
|
|
@ -322,10 +322,12 @@ def updateTop3Names(ids):
|
||||||
if data is not None:
|
if data is not None:
|
||||||
try:
|
try:
|
||||||
name = json.loads(data.read())["profileDisplayString"]
|
name = json.loads(data.read())["profileDisplayString"]
|
||||||
|
if (not value):
|
||||||
|
raise ValueError
|
||||||
except ValueError:
|
except ValueError:
|
||||||
names.append("???")
|
names.append("???")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
names.append(name)
|
names.append(name)
|
||||||
top3Name = names
|
top3Name = names
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue