diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-20 15:21:36 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-20 15:21:36 +1200 |
commit | 3d9e8b2dbf7057fdcc72c74e1ffa265631750c98 (patch) | |
tree | 36caa396f47aad5df97b581a43e692228ac6d3f0 /libpathod/pathod.py | |
parent | 03f4dcc02b87db6f881f7d334d64a2bd4dcad04c (diff) | |
download | mitmproxy-3d9e8b2dbf7057fdcc72c74e1ffa265631750c98.tar.gz mitmproxy-3d9e8b2dbf7057fdcc72c74e1ffa265631750c98.tar.bz2 mitmproxy-3d9e8b2dbf7057fdcc72c74e1ffa265631750c98.zip |
We shouldn't ever get a socket error emanating from netlib.
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r-- | libpathod/pathod.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 5eb91f7a..44bcadb7 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -37,10 +37,7 @@ class PathodHandler(tcp.BaseHandler): self.finish() while not self.finished: - try: - line = self.rfile.readline() - except socket.error: - return None + line = self.rfile.readline() if line == "\r\n" or line == "\n": # Possible leftover from previous message line = self.rfile.readline() if line == "": |