Created
April 23, 2023 17:54
-
-
Save ArthurSteijn/b3fa313a2440321c83cb726c75294762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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