mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
tracer bugfix
This commit is contained in:
parent
e89aa5e2cf
commit
942cafd644
1 changed files with 1 additions and 1 deletions
2
db.py
2
db.py
|
@ -575,7 +575,7 @@ class Overwatch(Base):
|
|||
except TypeError:
|
||||
raise RequestError("Something went wrong when retrieving the stats.")
|
||||
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:
|
||||
pass
|
||||
self.level = j["prestige"] * 100 + j["level"]
|
||||
|
|
Loading…
Reference in a new issue