mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +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:
|
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"]
|
||||||
|
|
Loading…
Reference in a new issue