fix: when making a hasty exit from goals, make sure to get the log out

This commit is contained in:
Andy Shultz
2022-12-20 09:22:48 -05:00
parent 9171914ed7
commit f2f71516bc

View File

@@ -122,6 +122,8 @@ class Command(BaseCommand):
self._handle_all_goals()
except BaseException: # pylint: disable=broad-except
log.exception("Error while sending course goals emails: ")
for h in log.handlers:
h.flush()
raise
def _handle_all_goals(self):