Mercurial > p > roundup > code
diff roundup/scripts/roundup_server.py @ 1907:0b0cd279780e
handle socket timeout exception (thanks Marcus Priesch)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 11 Nov 2003 21:51:52 +0000 |
| parents | db97431125a5 |
| children | 3f2d1671ec03 |
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py Tue Nov 11 11:19:18 2003 +0000 +++ b/roundup/scripts/roundup_server.py Tue Nov 11 21:51:52 2003 +0000 @@ -16,7 +16,7 @@ # """ HTTP Server that serves roundup. -$Id: roundup_server.py,v 1.32 2003-10-25 12:26:42 jlgijsbers Exp $ +$Id: roundup_server.py,v 1.33 2003-11-11 21:51:52 richard Exp $ """ # python version check @@ -78,6 +78,10 @@ self.send_error(404, self.path) except client.Unauthorised: self.send_error(403, self.path) + except socket.timeout: + s = StringIO.StringIO() + traceback.print_exc(None, s) + self.log_message(str(s.getvalue())) except: # it'd be nice to be able to detect if these are going to have # any effect...
