follow-up 958b794bc9
This commit is contained in:
parent
52eb4aebe6
commit
414b6e8a06
|
@ -83,7 +83,7 @@ class GuiMixin(object):
|
||||||
return self.proto.CharacterAck(**char_info)
|
return self.proto.CharacterAck(**char_info)
|
||||||
|
|
||||||
|
|
||||||
class TrezorClientBase(GuiMixin, PrintError):
|
class KeepKeyClientBase(GuiMixin, PrintError):
|
||||||
|
|
||||||
def __init__(self, handler, plugin, proto):
|
def __init__(self, handler, plugin, proto):
|
||||||
assert hasattr(self, 'tx_api') # ProtocolMixin already constructed?
|
assert hasattr(self, 'tx_api') # ProtocolMixin already constructed?
|
||||||
|
@ -184,7 +184,7 @@ class TrezorClientBase(GuiMixin, PrintError):
|
||||||
self.print_error("clear session:", self)
|
self.print_error("clear session:", self)
|
||||||
self.prevent_timeouts()
|
self.prevent_timeouts()
|
||||||
try:
|
try:
|
||||||
super(TrezorClientBase, self).clear_session()
|
super(KeepKeyClientBase, self).clear_session()
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
# If the device was removed it has the same effect...
|
# If the device was removed it has the same effect...
|
||||||
self.print_error("clear_session: ignoring error", str(e))
|
self.print_error("clear_session: ignoring error", str(e))
|
||||||
|
@ -192,7 +192,7 @@ class TrezorClientBase(GuiMixin, PrintError):
|
||||||
|
|
||||||
def get_public_node(self, address_n, creating):
|
def get_public_node(self, address_n, creating):
|
||||||
self.creating_wallet = creating
|
self.creating_wallet = creating
|
||||||
return super(TrezorClientBase, self).get_public_node(address_n)
|
return super(KeepKeyClientBase, self).get_public_node(address_n)
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
'''Called when Our wallet was closed or the device removed.'''
|
'''Called when Our wallet was closed or the device removed.'''
|
||||||
|
|
Loading…
Reference in New Issue