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:
Andy Shultz
2022-12-05 10:41:17 -05:00
parent ecc9a7c3e3
commit 85ca6ad5ec

View File

@@ -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