Mercurial > p > roundup > code
diff roundup/scripts/roundup_server.py @ 2270:3cdefcb2b7d2 maint-0.7
have roundup server pass though the cause of a "403 Forbidden" response
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 09 May 2004 23:41:13 +0000 |
| parents | ca2664e095be |
| children | 105a4079b98f |
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py Fri May 07 00:48:08 2004 +0000 +++ b/roundup/scripts/roundup_server.py Sun May 09 23:41:13 2004 +0000 @@ -17,7 +17,7 @@ """Command-line script that runs a server over roundup.cgi.client. -$Id: roundup_server.py,v 1.46 2004-04-20 21:57:16 richard Exp $ +$Id: roundup_server.py,v 1.46.2.1 2004-05-09 23:41:13 richard Exp $ """ __docformat__ = 'restructuredtext' @@ -94,8 +94,8 @@ self.inner_run_cgi() except client.NotFound: self.send_error(404, self.path) - except client.Unauthorised: - self.send_error(403, self.path) + except client.Unauthorised, message: + self.send_error(403, '%s (%s)'%(self.path, message)) except: exc, val, tb = sys.exc_info() if hasattr(socket, 'timeout') and isinstance(val, socket.timeout):
