Skip to content

Commit

Permalink
debugging email_notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbashan committed Feb 9, 2025
1 parent 905a674 commit d2307a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srm_tools/error_notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ def invoke_on(func, name, is_test=False, on_success=None, on_failure=None):
if on_success:
on_success()
except Exception as e:
logger.info(f"Error in {name}: {e}")
print(f"Error in {name}: {e}")
if on_failure:
on_failure()
send_failure_email(name, traceback.format_exc(), is_test)
except BaseException as e:
logger.info(f"BaseException caught: {e}") # Catch anything else
print(f"BaseException caught: {e}") # Catch anything else

0 comments on commit d2307a4

Please sign in to comment.