Skip to content

Commit

Permalink
fixed tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
vedina committed Mar 26, 2024
1 parent b9f1b5f commit c2446ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rcapi/services/template_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c2446ed

Please sign in to comment.