Skip to content

Commit e03c968

Browse files
author
Richard Jones
committed
socket timeout error logging can fail
1 parent b617d0b commit e03c968

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

roundup/scripts/roundup_server.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
""" HTTP Server that serves roundup.
1818
19-
$Id: roundup_server.py,v 1.26.2.5 2004-02-15 22:22:20 richard Exp $
19+
$Id: roundup_server.py,v 1.26.2.6 2004-04-09 01:28:24 richard Exp $
2020
"""
2121

2222
# python version check
@@ -87,9 +87,7 @@ def run_cgi(self):
8787
except:
8888
exc, val, tb = sys.exc_info()
8989
if hasattr(socket, 'timeout') and exc == socket.timeout:
90-
s = StringIO.StringIO()
91-
traceback.print_exc(None, s)
92-
self.log_message(str(s.getvalue()))
90+
self.log_error('timeout')
9391
else:
9492
# it'd be nice to be able to detect if these are going to have
9593
# any effect...

0 commit comments

Comments
 (0)