aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-05-26 12:31:29 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-05-26 12:31:29 +1200
commit23efee981338f8ae66d0161fe12e2a7b3b25d1f2 (patch)
treec640aefcc27b23b0f14681cffebcc414ac0e4b10 /netlib/tcp.py
parentf7e77d543bcca84f75e09440841aacb582881da2 (diff)
downloadmitmproxy-23efee981338f8ae66d0161fe12e2a7b3b25d1f2.tar.gz
mitmproxy-23efee981338f8ae66d0161fe12e2a7b3b25d1f2.tar.bz2
mitmproxy-23efee981338f8ae66d0161fe12e2a7b3b25d1f2.zip
Sketch out a more solid core
- Decorator for handler methods - Stricter checking for double-acks and non-acks
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index d26bb5f7..8e3ae65e 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -900,7 +900,7 @@ class TCPServer(object):
"""
# If a thread has persisted after interpreter exit, the module might be
# none.
- if traceback:
+ if traceback and six:
exc = six.text_type(traceback.format_exc())
print(u'-' * 40, file=fp)
print(