Skip to content

Instantly share code, notes, and snippets.

@ArthurSteijn
Created April 23, 2023 17:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
WEBHOOK_URL = "your_teams_webhook_url"
@send_error_to_teams_decorator(WEBHOOK_URL)
def my_function():
try:
raise Exception("This try block always fails!")
except Exception as e:
raise ValueError(f"ValueError: {str(e)}")
my_function()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment