summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-03-14 14:32:14 -0500
committerMichael Merickel <michael@merickel.org>2016-03-14 14:32:14 -0500
commit7175a51bec9491ff58a8ef3a94cc7804b476541d (patch)
treefd664e3cb87708eb3531946ded7aac9b833fbb7a
parent78cf75aef700f2db65d3dac379811c7f17eab1f7 (diff)
downloadpyramid-7175a51bec9491ff58a8ef3a94cc7804b476541d.tar.gz
pyramid-7175a51bec9491ff58a8ef3a94cc7804b476541d.tar.bz2
pyramid-7175a51bec9491ff58a8ef3a94cc7804b476541d.zip
move comment closer to relevant logic
-rw-r--r--docs/narr/subrequest.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/subrequest.rst b/docs/narr/subrequest.rst
index 60972b156..a943dca5d 100644
--- a/docs/narr/subrequest.rst
+++ b/docs/narr/subrequest.rst
@@ -316,11 +316,11 @@ Below is an example usage of
return response
except Exception:
response = request.invoke_exception_view()
- # there is no exception view for this exception, simply
- # re-raise and let someone else handle it
if response is not None:
return response
else:
+ # there is no exception view for this exception, simply
+ # re-raise and let someone else handle it
raise
Please note that in most cases you do not need to write code like this an may