Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Send an error email when an you get an exception.

Project Description

Send an error email when an you get an exception.

  • Free software: BSD license
  • Documentation: See Below

What does it do?

Here is how it works:

with ErrorEmail(email_config):

If do_stuff raises an exception, it will send an email with the traceback. That’s it.


The ErrorEmail context manager accepts a configuration dictionary that defines the To, From and SMTP server information. Here is an example:

  'SERVER': '',
  'PORT': 25,
  'TO': ['', ''],
  'FROM': '',

ErrorEmail doesn’t have robust email support at the moment. I’m happy to accept pull requests!

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(11.7 kB) Copy SHA256 Hash SHA256
Source None Jan 23, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate