Slack Notification for Python try, except method
I am trying to write a python code with the try and except method where anytime an exception occurs it should give me a slack notification with the exception occurred. Here is the code that I have written: try: with MailBox(‘imap.gmail.com’).login(username, password) as mailbox: print(mailbox) except Exception as e: print(e) slack_message = {‘text’: e} http… Read More Slack Notification for Python try, except method