diff options
author | ianb <devnull@localhost> | 2005-11-14 02:57:29 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-11-14 02:57:29 +0000 |
commit | f19bf035399089bcc1999560aaa07fcada0fd450 (patch) | |
tree | cb69dc68dab7cf77751a6596f68fb1bd5d7c251c /paste/evalexception | |
parent | c1f8b730c90aaef2eb85af9cf5802ce43cf07bf0 (diff) | |
download | paste-f19bf035399089bcc1999560aaa07fcada0fd450.tar.gz |
Bunch of minor changes suggested by pyflakes
Diffstat (limited to 'paste/evalexception')
-rw-r--r-- | paste/evalexception/middleware.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py index 18f8b5f..1c86334 100644 --- a/paste/evalexception/middleware.py +++ b/paste/evalexception/middleware.py @@ -225,10 +225,10 @@ class EvalException(object): app_iter = self.application(environ, detect_start_response) return self.catching_iter(app_iter, environ) except: + exc_info = sys.exc_info() for expected in environ.get('paste.expected_exceptions', []): if issubclass(exc_info[0], expected): raise - exc_info = sys.exc_info() count = debug_counter.next() debug_info = DebugInfo(count, exc_info) assert count not in self.debug_infos |