commit 748662dedede8f79459125b11517a110f01b7359
parent 2ee506ac03df6744b37349ae901128d687b443a5
Author: Neil Booth <kyuupichan@gmail.com>
Date: Mon, 31 Aug 2015 14:38:19 +0900
Add a debugging traceback.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/interface.py b/lib/interface.py
@@ -243,6 +243,8 @@ class Interface:
def queue_request(self, request):
'''Queue a request.'''
+ if type(request) != type({}):
+ traceback.print_exc(file=sys.stderr)
self.request_time = time.time()
self.unsent_requests.append(request)