From 792dd707306a130ea7441cbb64adf691b6669528 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 18 May 2021 14:05:56 +0530 Subject: [PATCH] fix: Handle AttributeError --- frappe/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/__init__.py b/frappe/utils/__init__.py index a143ff3097..436dcba028 100644 --- a/frappe/utils/__init__.py +++ b/frappe/utils/__init__.py @@ -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: