1
0

catch some exceptions during GUI init

This commit is contained in:
SomberNight
2018-02-15 17:30:40 +01:00
parent 6b09d478a5
commit fe1e412f01
2 changed files with 17 additions and 3 deletions

View File

@@ -25,6 +25,8 @@
import ast
import os
import time
import traceback
import sys
# from jsonrpc import JSONRPCResponseManager
import jsonrpclib
@@ -300,4 +302,8 @@ class Daemon(DaemonThread):
gui_name = 'qt'
gui = __import__('electrum_gui.' + gui_name, fromlist=['electrum_gui'])
self.gui = gui.ElectrumGui(config, self, plugins)
self.gui.main()
try:
self.gui.main()
except BaseException as e:
traceback.print_exc(file=sys.stdout)
# app will exit now