hw wallets: show DeviceUnpairableError nicely in qt gui
need to subclass UserFacingException for main_window.on_error
This commit is contained in:
@@ -31,7 +31,7 @@ import sys
|
|||||||
from typing import NamedTuple, Any, Union, TYPE_CHECKING, Optional
|
from typing import NamedTuple, Any, Union, TYPE_CHECKING, Optional
|
||||||
|
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
from .util import (profiler, DaemonThread, UserCancelled, ThreadJob)
|
from .util import (profiler, DaemonThread, UserCancelled, ThreadJob, UserFacingException)
|
||||||
from . import bip32
|
from . import bip32
|
||||||
from . import plugins
|
from . import plugins
|
||||||
from .simple_config import SimpleConfig
|
from .simple_config import SimpleConfig
|
||||||
@@ -285,8 +285,7 @@ class BasePlugin(Logger):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class DeviceNotFoundError(Exception): pass
|
class DeviceUnpairableError(UserFacingException): pass
|
||||||
class DeviceUnpairableError(Exception): pass
|
|
||||||
class HardwarePluginLibraryUnavailable(Exception): pass
|
class HardwarePluginLibraryUnavailable(Exception): pass
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user