[apt-proxy-devel] r663 - trunk/apt_proxy
Chris Halls
halls at alioth.debian.org
Wed Jul 4 10:37:29 UTC 2007
Author: halls
Date: Wed Jul 4 10:37:29 2007
New Revision: 663
Log:
Handle unknown exception received during client add request
Modified:
trunk/apt_proxy/clients.py
Modified: trunk/apt_proxy/clients.py
==============================================================================
--- trunk/apt_proxy/clients.py (original)
+++ trunk/apt_proxy/clients.py Wed Jul 4 10:37:29 2007
@@ -116,7 +116,13 @@
self.finishCode(http.FORBIDDEN, 'Directory listing not permitted')
return
- self.cacheEntry.add_request(self)
+ try:
+ self.cacheEntry.add_request(self)
+ except Exception, e:
+ log.err('unknown error adding request %s - %s' % (self, e), 'HttpRequestClient')
+ self.finishCode(http.INTERNAL_SERVER_ERROR, 'Internal error')
+ self.transport.loseConnection()
+ raise
def clean_path(self, uri):
# Clean up URL given
More information about the apt-proxy-devel
mailing list