diff options
| author | Michael Merickel <michael@merickel.org> | 2016-03-14 14:32:14 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-03-14 14:32:14 -0500 |
| commit | 7175a51bec9491ff58a8ef3a94cc7804b476541d (patch) | |
| tree | fd664e3cb87708eb3531946ded7aac9b833fbb7a /docs/narr | |
| parent | 78cf75aef700f2db65d3dac379811c7f17eab1f7 (diff) | |
| download | pyramid-7175a51bec9491ff58a8ef3a94cc7804b476541d.tar.gz pyramid-7175a51bec9491ff58a8ef3a94cc7804b476541d.tar.bz2 pyramid-7175a51bec9491ff58a8ef3a94cc7804b476541d.zip | |
move comment closer to relevant logic
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/subrequest.rst | 4 |
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 |
