fix: catch even base exceptions when exiting
prior exception catch is not triggering in cases where the job blows up, there is one more level of exception available to catch and print
This commit is contained in:
@@ -120,7 +120,7 @@ class Command(BaseCommand):
|
||||
|
||||
try:
|
||||
self._handle_all_goals()
|
||||
except Exception: # pylint: disable=broad-except
|
||||
except BaseException: # pylint: disable=broad-except
|
||||
log.exception("Error while sending course goals emails: ")
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user