Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 4638:1ebc5f16aeda
Ignore OpenSSL.SSL.SysCallError similar to IOError.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Tue, 10 Jul 2012 12:00:32 +0200 |
| parents | 4f9c3858b671 |
| children | 70b1cb9034c3 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed May 16 15:21:08 2012 +0200 +++ b/roundup/cgi/client.py Tue Jul 10 12:00:32 2012 +0200 @@ -7,6 +7,11 @@ import socket, errno from traceback import format_exc +try: + from OpenSSL.SSL import SysCallError +except ImportError: + SysCallError = None + from roundup import roundupdb, date, hyperdb, password from roundup.cgi import templating, cgitb, TranslationService from roundup.cgi.actions import * @@ -483,7 +488,10 @@ self.serve_static_file(str(file)) except IOError: # IOErrors here are due to the client disconnecting before - # recieving the reply. + # receiving the reply. + pass + except SysCallError: + # OpenSSL.SSL.SysCallError is similar to IOError above pass except SeriousError, message:
