Miserlou / Zappa

Serverless Python
https://blog.zappa.io/
MIT License
11.89k stars 1.21k forks source link

exception handler doesn't seem to work #2144

Open akobig opened 3 years ago

akobig commented 3 years ago

I created the unhandled_exceptions function exactly as in the manual, and configured the zappa_settings.json.

this is the function: def unhandled_exceptions(e, event, context): send_email(to=[developer_email], subject="unhandled exception in app", text="test") print("exception test") return True

I don't get any email (this function 100% working) when there is an exception nor seeing the print output in log. the exception is clearly printed in the log, as usual.

I really want this to work since it is the only easy way to send the exception in email. tnx