thw wallets: show DeviceUnpairableError nicely in qt gui - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9372eacc291ab3fb35c762eba0341d95571863ff DIR parent bb2c3475cc8f9e8b5ed3ef636627feae38d6e093 HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 3 Sep 2019 19:19:58 +0200 hw wallets: show DeviceUnpairableError nicely in qt gui need to subclass UserFacingException for main_window.on_error Diffstat: M electrum/plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum/plugin.py b/electrum/plugin.py t@@ -31,7 +31,7 @@ import sys from typing import NamedTuple, Any, Union, TYPE_CHECKING, Optional from .i18n import _ -from .util import (profiler, DaemonThread, UserCancelled, ThreadJob) +from .util import (profiler, DaemonThread, UserCancelled, ThreadJob, UserFacingException) from . import bip32 from . import plugins from .simple_config import SimpleConfig t@@ -285,8 +285,7 @@ class BasePlugin(Logger): pass -class DeviceNotFoundError(Exception): pass -class DeviceUnpairableError(Exception): pass +class DeviceUnpairableError(UserFacingException): pass class HardwarePluginLibraryUnavailable(Exception): pass