Browse Source

print traceback is an exception occurs in network.process_request

283
ThomasV 10 years ago
parent
commit
8ca17a3e70
  1. 11
      lib/network.py

11
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)

Loading…
Cancel
Save