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.
@ -306,18 +304,20 @@ class Ledger_KeyStore(Hardware_KeyStore):
signature=client_ledger.signMessageSign(pin)
signature=client_ledger.signMessageSign(pin)
exceptBTChipExceptionase:
exceptBTChipExceptionase:
ife.sw==0x6a80:
ife.sw==0x6a80:
self.give_error("Unfortunately, this message cannot be signed by the Ledger wallet. Only alphanumerical messages shorter than 140 characters are supported. Please remove any extra characters (tab, carriage return) and retry.")
self.give_error("Unfortunately, this message cannot be signed by the Ledger wallet. "
"Only alphanumerical messages shorter than 140 characters are supported. "
"Please remove any extra characters (tab, carriage return) and retry.")
elife.sw==0x6985:# cancelled by user
elife.sw==0x6985:# cancelled by user
returnb''
returnb''
elife.sw==0x6982:
elife.sw==0x6982:
raise# pin lock. decorator will catch it
raise# pin lock. decorator will catch it
else:
else:
self.give_error(e,True)
self.give_error(e)
exceptUserWarning:
exceptUserWarning:
self.handler.show_error(_('Cancelled by user'))
self.handler.show_error(_('Cancelled by user'))
returnb''
returnb''
exceptExceptionase:
exceptExceptionase:
self.give_error(e,True)
self.give_error(e)
finally:
finally:
self.handler.finished()
self.handler.finished()
# Parse the ASN.1 signature
# Parse the ASN.1 signature
@ -541,10 +541,10 @@ class Ledger_KeyStore(Hardware_KeyStore):