summaryrefslogtreecommitdiff
path: root/paste/exceptions
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-10-06 20:13:49 +0000
committerianb <devnull@localhost>2006-10-06 20:13:49 +0000
commit4bc7773ded9210e40492a2b1e7f3a862c3c01841 (patch)
tree16e67f2e2ceab1b92ad192f136e0c0c6720ac94f /paste/exceptions
parent324584f94bd98e3f81ffe96e2612553147eff4db (diff)
downloadpaste-4bc7773ded9210e40492a2b1e7f3a862c3c01841.tar.gz
Don't reclose the app_iter if it was closed because of an exception
Diffstat (limited to 'paste/exceptions')
-rw-r--r--paste/exceptions/errormiddleware.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/exceptions/errormiddleware.py b/paste/exceptions/errormiddleware.py
index da12701..ed65e34 100644
--- a/paste/exceptions/errormiddleware.py
+++ b/paste/exceptions/errormiddleware.py
@@ -229,7 +229,8 @@ class CatchingIter(object):
def close(self):
# This should at least print something to stderr if the
# close method fails at this point
- self._close()
+ if not self.closed:
+ self._close()
def _close(self):
"""Close and return any error message"""