From 7c4843857be0ad165fca46dcad24a213fc3bd284 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 26 May 2016 12:31:29 +1200 Subject: Sketch out a more solid core - Decorator for handler methods - Stricter checking for double-acks and non-acks --- netlib/tcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netlib/tcp.py') 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( -- cgit v1.2.3