tests/tinyproxy.py
changeset 16703 7292a4618f46
parent 16300 74e114ac6ec1
child 18519 ca430fb6a668
--- a/tests/tinyproxy.py	Sun May 13 13:17:27 2012 +0200
+++ b/tests/tinyproxy.py	Sun May 13 13:17:31 2012 +0200
@@ -47,7 +47,7 @@
         try: soc.connect(host_port)
         except socket.error, arg:
             try: msg = arg[1]
-            except: msg = arg
+            except (IndexError, TypeError): msg = arg
             self.send_error(404, msg)
             return 0
         return 1