Send email and log to file when there's an uncaught exception in your code
pip install crashlog
import crashlog
crashlog.install(email=['bugs@looney.org'], logfile='/path/to/log.txt')For email to work, you need to set SMTP_SERVER environment variable and
optionally SMTP_USER and SMTP_PASSWORD.
Miki Tebeka miki.tebeka@gmail.com
Bug reports go here.