From c2446edce5bb50b6d99c5dd7427a81dbd92dedb9 Mon Sep 17 00:00:00 2001 From: vedina Date: Tue, 26 Mar 2024 19:22:49 +0200 Subject: [PATCH] fixed tabs --- src/rcapi/services/template_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcapi/services/template_service.py b/src/rcapi/services/template_service.py index e2608e9..9c79e71 100644 --- a/src/rcapi/services/template_service.py +++ b/src/rcapi/services/template_service.py @@ -29,8 +29,8 @@ def process_error(perr,task,base_url,uuid): def process(_json,task,base_url,uuid): try: if json is None: - print(_json,task,base_url,uuid) - raise Exception("Empty JSON!") + print(_json,task,base_url,uuid) + raise ValueError("Empty JSON!") with open(os.path.join(TEMPLATE_DIR,f"{uuid}.json"), "w") as json_file: json.dump(_json, json_file, indent=4) task.status="Completed"