diff options
author | ianb <devnull@localhost> | 2008-03-26 02:07:34 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-03-26 02:07:34 +0000 |
commit | 3bd39f08a20e2231fec8496244833ea960603423 (patch) | |
tree | 319d4f23abace812181317e850588044c0d941d7 /paste/httpexceptions.py | |
parent | 22ba2e92b0c2934945b3960ad4c6c16b7baca984 (diff) | |
download | paste-3bd39f08a20e2231fec8496244833ea960603423.tar.gz |
Add a note about httpexceptions and generator applications (#242)
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index cd3b81a..b14ad5a 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -616,6 +616,10 @@ class HTTPExceptionHandler(object): ``HTTPException``) and turns them into proper HTTP responses. Note if the headers have already been sent, the stack trace is always maintained as this indicates a programming error. + + Note that you must raise the exception before returning the + app_iter, and you cannot use this with generator apps that don't + raise an exception until after their app_iter is iterated over. """ def __init__(self, application, warning_level=None): |