fix: Handle AttributeError
This commit is contained in:
parent
f234761755
commit
792dd70730
1 changed files with 1 additions and 1 deletions
|
|
@ -805,7 +805,7 @@ def get_assets_json():
|
||||||
assets_json = cache.get("assets_json")
|
assets_json = cache.get("assets_json")
|
||||||
try:
|
try:
|
||||||
assets_json = assets_json.decode('utf-8')
|
assets_json = assets_json.decode('utf-8')
|
||||||
except UnicodeDecodeError:
|
except (UnicodeDecodeError, AttributeError):
|
||||||
assets_json = None
|
assets_json = None
|
||||||
|
|
||||||
if not assets_json:
|
if not assets_json:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue