commit 8ca17a3e705d8f22723fcc8012552e0172804290
parent 992a634a77534c7e3cc35eac298f7235a8c731e2
Author: ThomasV <thomasv@gitorious>
Date: Thu, 29 Jan 2015 11:32:58 +0100
print traceback is an exception occurs in network.process_request
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/lib/network.py b/lib/network.py
@@ -1,4 +1,12 @@
-import threading, time, Queue, os, sys, shutil, random
+import threading
+import time
+import Queue
+import os
+import sys
+import random
+import traceback
+
+
from util import user_dir, appdata_dir, print_error, print_msg
from bitcoin import *
import interface
@@ -360,6 +368,7 @@ class Network(threading.Thread):
out['result'] = f(*params)
except BaseException as e:
out['error'] = str(e)
+ traceback.print_exc(file=sys.stout)
print_error("network error", str(e))
self.response_queue.put(out)