From 551fd9867b924b6cee5f9030a421bc22dd87c2cd Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 7 Sep 2022 20:49:46 +0300 Subject: catch general errors this will recreate the file --- wqflask/base/data_set.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index 211c6752..72906515 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -1321,5 +1321,6 @@ def fetch_cached_results(dataset_name: str, dataset_type: str, samplelist: List) with open(file_path, "r") as file_handler: return json.load(file_handler) - except FileNotFoundError: + + except Exception: pass -- cgit v1.2.3