From 646dfcbdf18608492011af99eec064aed57ad933 Mon Sep 17 00:00:00 2001 From: "Akihiko (Aki) Kuroda" <16141898+akihikokuroda@users.noreply.github.com> Date: Tue, 16 Jul 2024 18:34:54 -0400 Subject: [PATCH] api/tasks/programs.py (#1409) --- gateway/api/tasks/programs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gateway/api/tasks/programs.py b/gateway/api/tasks/programs.py index e9e10a3b9..9a62e87b1 100644 --- a/gateway/api/tasks/programs.py +++ b/gateway/api/tasks/programs.py @@ -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():