1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00

tracer bugfix

This commit is contained in:
Steffo 2018-08-28 17:47:38 +02:00
parent e89aa5e2cf
commit 942cafd644

2
db.py
View file

@ -575,7 +575,7 @@ class Overwatch(Base):
except TypeError: except TypeError:
raise RequestError("Something went wrong when retrieving the stats.") raise RequestError("Something went wrong when retrieving the stats.")
try: try:
self.icon = re.search(r"https://.+\.cloudfront\.net/game/unlocks/(0x[0-9A-F]+)\.png", j["avatar"]).group(1) self.icon = re.search(r"https://.+\.cloudfront\.net/game/unlocks/(0x[0-9A-F]+)\.png", j.get("avatar", "")).group(1)
except AttributeError: except AttributeError:
pass pass
self.level = j["prestige"] * 100 + j["level"] self.level = j["prestige"] * 100 + j["level"]