Skip to content

Instantly share code, notes, and snippets.

@mmerickel
Last active May 22, 2017 18:50
Show Gist options
  • Save mmerickel/2e83f4af6c7d5eae34947b8f1f075f61 to your computer and use it in GitHub Desktop.
Save mmerickel/2e83f4af6c7d5eae34947b8f1f075f61 to your computer and use it in GitHub Desktop.
pyramid exception handling workflow
pyramid_retry +--------> if exc not retryable, render response
if exc retryable, ignore exc and try again
+
|
|
v
pyramid_debugtoolbar
+
|
|
v
pyramid_tm +--------> if exc caught then abort and reraise
if request.exception then abort and return response
+ if abort or commit raises, render response
|
|
v
excview +--------> if exc caught, render response and set request.exception
if no exception then reraise
+
|
|
v
app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment