From 57f01ffb07a7f32fa9679787e8894cf4917b022b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 28 Jan 2013 21:59:03 +1300 Subject: Test suite, remove extraneous code. --- libmproxy/proxy.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libmproxy') diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index d2452e36..9e2dd126 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -96,11 +96,8 @@ class ServerConnection(tcp.TCPClient): d = request._assemble() if not d: raise ProxyError(502, "Cannot transmit an incomplete request.") - try: - self.wfile.write(d) - self.wfile.flush() - except socket.error, err: - raise ProxyError(502, 'Error sending data to "%s": %s' % (request.host, err)) + self.wfile.write(d) + self.wfile.flush() def terminate(self): try: -- cgit v1.2.3