From a65b8bf6441ee7de8689b48557f18cf8390fb316 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 26 Oct 2019 14:31:42 +0100 Subject: [PATCH] savejson error handling --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index f3c58a9de..b96b05851 100644 --- a/utils.py +++ b/utils.py @@ -21,8 +21,8 @@ def saveJson(jsonObject: {},filename: str) -> bool: with open(filename, 'w') as fp: commentjson.dump(jsonObject, fp, indent=2, sort_keys=False) return True - except commentjson.JSONLibraryException as e: - print('WARN: saveJson '+str(e)) + except: + print('WARN: saveJson') time.sleep(1) tries+=1 return False