summaryrefslogtreecommitdiff
path: root/docs/narr/subrequest.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/subrequest.rst')
-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