pyramid_errmail
API¶
-
pyramid_errmail.
includeme
(config)¶ Set up am implicit ‘tween’ to send emails when an exception is raised by your Pyramid application.
By default this tween configured to be place ‘above’ the exception view tween, which will cause only exceptions which are not caught by an exception view to be mailed.
The tween can alternately be configured to be placed between the main Pyramid app and the Pyramid exception view tween, which will cause all exceptions (even those eventually caught by a Pyramid exception view, which will include exceptions such as
HTTPFound
and others signifiying redirects) to be mailed. To turn this feature on, use theerrmail.catchall
configuration setting with a value oftrue
.