From 942cafd64482eed62cb2aa97e86575bd8ed5d5b8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 28 Aug 2018 17:47:38 +0200 Subject: [PATCH] tracer bugfix --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index ad9b5e46..3029f796 100644 --- a/db.py +++ b/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"]