Skip to content

Commit

Permalink
api/tasks/programs.py (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda authored Jul 16, 2024
1 parent 6c3487a commit 646dfcb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gateway/api/tasks/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ def assign_run_permission():
"""
try:
functions_permissions = json.loads(settings.FUNCTIONS_PERMISSIONS)
except json.JSONDecodeError as e:
logger.error("Assign run permission JSON malformed: %s", e)
except json.JSONDecodeError:
logger.error(
"Assign run permission JSON malformed in settings.FUNCTIONS_PERMISSIONS"
)
return
except Exception as e: # pylint: disable=broad-exception-caught
logger.error("Assign run permission unexpected error: %s", e)
except Exception: # pylint: disable=broad-exception-caught
logger.error("Assign run permission unexpected error")
return

for function_title, function_info in functions_permissions.items():
Expand Down

0 comments on commit 646dfcb

Please sign in to comment.