fix: Handle AttributeError

This commit is contained in:
Faris Ansari 2021-05-18 14:05:56 +05:30
parent f234761755
commit 792dd70730

View file

@ -805,7 +805,7 @@ def get_assets_json():
assets_json = cache.get("assets_json")
try:
assets_json = assets_json.decode('utf-8')
except UnicodeDecodeError:
except (UnicodeDecodeError, AttributeError):
assets_json = None
if not assets_json: