Show error window for unhandled exceptions
Use exception hook from main thread for all threads Use signal to delegate error window creation to GUI thread Add more information to issue template Update to PyQt5 Switch from Github to REST-Service Report to web service instead of opening the browser Fix imports Change crashhub URL to electrum.org server Explain that exception hooks are only used in the Qt Gui now
This commit is contained in:
7
electrum
7
electrum
@@ -87,7 +87,8 @@ if is_local or is_android:
|
||||
imp.load_module('electrum_plugins', *imp.find_module('plugins'))
|
||||
|
||||
|
||||
from electrum import bitcoin
|
||||
|
||||
from electrum import bitcoin, util
|
||||
from electrum import SimpleConfig, Network
|
||||
from electrum.wallet import Wallet, Imported_Wallet
|
||||
from electrum.storage import WalletStorage
|
||||
@@ -296,8 +297,10 @@ def init_plugins(config, gui_name):
|
||||
from electrum.plugins import Plugins
|
||||
return Plugins(config, is_local or is_android, gui_name)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
if __name__ == '__main__':
|
||||
# The hook will only be used in the Qt GUI right now
|
||||
util.setup_thread_excepthook()
|
||||
# on osx, delete Process Serial Number arg generated for apps launched in Finder
|
||||
sys.argv = list(filter(lambda x: not x.startswith('-psn'), sys.argv))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user