1
0

hw plugins: (cleanup) rm no-op clear_client argument from keystore.give_error

The keystore does not have a "client" field.
One is supposed to use the "get_client" method instead (the generic API is `plugin.get_client(keystore)`)
Remnants of old code.
This commit is contained in:
SomberNight
2022-05-11 19:30:14 +02:00
parent aab8e664ed
commit 6c50d3b0a3
4 changed files with 15 additions and 21 deletions

View File

@@ -444,9 +444,7 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore):
Hardware_KeyStore.__init__(self, d)
self.maxInputs = 14 # maximum inputs per single sign command
def give_error(self, message, clear_client = False):
if clear_client:
self.client = None
def give_error(self, message):
raise Exception(message)
@@ -652,7 +650,7 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore):
except UserCancelled:
raise
except BaseException as e:
self.give_error(e, True)
self.give_error(e)
else:
_logger.info(f"Transaction is_complete {tx.is_complete()}")