From 8ca17a3e705d8f22723fcc8012552e0172804290 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 29 Jan 2015 11:32:58 +0100 Subject: [PATCH] print traceback is an exception occurs in network.process_request --- lib/network.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/network.py b/lib/network.py index fc542a075..ba46dd4bb 100644 --- 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)