Skip to content

Instantly share code, notes, and snippets.

@ArthurSteijn
Created April 23, 2023 17:54
Show Gist options
  • Save ArthurSteijn/b3fa313a2440321c83cb726c75294762 to your computer and use it in GitHub Desktop.
Save ArthurSteijn/b3fa313a2440321c83cb726c75294762 to your computer and use it in GitHub Desktop.
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