1
0

wallet: fix offline hw wallet signing when not specifying --offline

closes #5532
This commit is contained in:
SomberNight
2019-07-29 13:27:37 +02:00
parent 84ca7ef306
commit a10dc04b28
3 changed files with 18 additions and 13 deletions

View File

@@ -52,7 +52,8 @@ from . import blockchain
from . import bitcoin
from .blockchain import Blockchain, HEADER_SIZE
from .interface import (Interface, serialize_server, deserialize_server,
RequestTimedOut, NetworkTimeout, BUCKET_NAME_OF_ONION_SERVERS)
RequestTimedOut, NetworkTimeout, BUCKET_NAME_OF_ONION_SERVERS,
NetworkException)
from .version import PROTOCOL_VERSION
from .simple_config import SimpleConfig
from .i18n import _
@@ -174,10 +175,10 @@ def deserialize_proxy(s: str) -> Optional[dict]:
return proxy
class BestEffortRequestFailed(Exception): pass
class BestEffortRequestFailed(NetworkException): pass
class TxBroadcastError(Exception):
class TxBroadcastError(NetworkException):
def get_message_for_gui(self):
raise NotImplementedError()
@@ -205,7 +206,7 @@ class TxBroadcastUnknownError(TxBroadcastError):
_("Consider trying to connect to a different server, or updating Electrum."))
class UntrustedServerReturnedError(Exception):
class UntrustedServerReturnedError(NetworkException):
def __init__(self, *, original_exception):
self.original_exception = original_exception