Notification system for error messages

Hello @sislvacl,

I actually have an issue open for this:

I typically like to send myself/IT team of when something breaks.

What I’ve come up with is something like this:

def alertError(subject, error):
    msg = ... subject
    msg.body = error
    mail.send(msg)

And then I send the error to the team. The error is normally traceback.format_exc()

def callback(...):
    try:
        ## code
        return valid response
    except:
        alertError(callback error, traceback.format_exc()
    return 'There was an error, IT has been notified'