Skip to content

Commit eafeacd

Browse files
committed
Ignore IOError and SysCallError also in outer try/except.
1 parent d8463fd commit eafeacd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

roundup/cgi/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,15 @@ def inner_main(self):
539539
except FormError, e:
540540
self.error_message.append(self._('Form Error: ') + str(e))
541541
self.write_html(self.renderContext())
542+
except IOError:
543+
# IOErrors here are due to the client disconnecting before
544+
# receiving the reply.
545+
# may happen during write_html and serve_file, too.
546+
pass
547+
except SysCallError:
548+
# OpenSSL.SSL.SysCallError is similar to IOError above
549+
# may happen during write_html and serve_file, too.
550+
pass
542551
except:
543552
# Something has gone badly wrong. Therefore, we should
544553
# make sure that the response code indicates failure.

0 commit comments

Comments
 (0)