From 24ba443d757be312f0ec90052a3eb5455c18c471 Mon Sep 17 00:00:00 2001 From: Ihsan Ullah Date: Thu, 27 Apr 2023 14:06:43 +0500 Subject: [PATCH] unpacking error handled --- src/apps/competitions/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/competitions/tasks.py b/src/apps/competitions/tasks.py index e8bbddaee..804109ce3 100644 --- a/src/apps/competitions/tasks.py +++ b/src/apps/competitions/tasks.py @@ -414,11 +414,11 @@ def _get_error_string(error_dict): mark_status_as_failed_and_delete_dataset(status, message) raise e - except: # noqa: E722 + except Exception as e: # noqa: E722 # These are critical uncaught exceptions, make sure the end user is at least informed # that unpacking has failed -- do not share unhandled exception details logger.error(traceback.format_exc()) - message = "Contact an administrator, competition failed to unpack in a critical way." + message = "Unpacking the bundle failed. Here is the error log: {}".format(e) mark_status_as_failed_and_delete_dataset(status, message)