chiark / gitweb /
wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 20:46:32 +0000 (21:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 20:46:32 +0000 (21:46 +0100)
client

diff --git a/client b/client
index 9ed719e..543d2f5 100755 (executable)
--- a/client
+++ b/client
@@ -137,6 +137,8 @@ def req_ok(req, resp):
 
 def req_err(req, err):
   log_debug(DBG.HTTP_CTRL, 'req_err ' + str(err), idof=req)
+  if isinstance(err, twisted.python.failure.Failure):
+    err = err.getTraceback()
   print(err, file=sys.stderr)
   reactor.callLater(c.http_retry, (lambda: req_fin(req)))