diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-20 11:27:05 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-20 11:27:05 +1300 |
commit | 01a449b5cb1106a867a6b73cd4877e9b2ec68171 (patch) | |
tree | 5a213fb4b8199d525079a55b64d6d232380be341 /pathod/language/writer.py | |
parent | 301d52d9d05f2c5f074fe68c73acc1c32e518020 (diff) | |
download | mitmproxy-01a449b5cb1106a867a6b73cd4877e9b2ec68171.tar.gz mitmproxy-01a449b5cb1106a867a6b73cd4877e9b2ec68171.tar.bz2 mitmproxy-01a449b5cb1106a867a6b73cd4877e9b2ec68171.zip |
netlib.exceptions.* -> mitmproxy.exceptions
Diffstat (limited to 'pathod/language/writer.py')
-rw-r--r-- | pathod/language/writer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pathod/language/writer.py b/pathod/language/writer.py index b8081989..ac0f44da 100644 --- a/pathod/language/writer.py +++ b/pathod/language/writer.py @@ -1,5 +1,5 @@ import time -from netlib.exceptions import TcpDisconnect +from mitmproxy import exceptions BLOCKSIZE = 1024 # It's not clear what the upper limit for time.sleep is. It's lower than the @@ -62,5 +62,5 @@ def write_values(fp, vals, actions, sofar=0, blocksize=BLOCKSIZE): return True elif a[1] == "inject": send_chunk(fp, a[2], blocksize, 0, len(a[2])) - except TcpDisconnect: # pragma: no cover + except exceptions.TcpDisconnect: # pragma: no cover return True |