Reputation: 28184
UPDATE: This is a Django web app
Hi folks, I want to set up email notifications when there is an error happening in my application. In ruby, there is a very elegant solution called ExceptionNotifier, which wraps around the exception handler and uses the built-in mailer to send an email.
What is the best way of doing this in Python? I know that this is a very common issue, so would love for any tips that you folks can share!
PS: Code samples, pointers to modules would be AWESOME! Thanks!
Upvotes: 0
Views: 139
Reputation: 13972
(I'm guessing you're talking about a web app here, because ExceptionNotifier is a Rails plugin...)
A Python web app using which framework? I know there's Django-hoptoad, which is actually a step above the ExecptionNotifier of Ruby, using ThoughtBot's Hoptoad.
But that's just a guess that you're using Django, which you might not be...
Similarly, Pylons (and by extension, Turbogears 2, I guess), has configuration options for error emails
Upvotes: 3