mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
trezor: fix minor error handling issue
AttributeError: 'TrezorFailure' object has no attribute 'message'
This commit is contained in:
parent
e2eb051eed
commit
ec86850a2e
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class TrezorClientBase(PrintError):
|
|||
if issubclass(exc_type, Cancelled):
|
||||
raise UserCancelled from exc_value
|
||||
elif issubclass(exc_type, TrezorFailure):
|
||||
raise RuntimeError(exc_value.message) from exc_value
|
||||
raise RuntimeError(str(exc_value)) from exc_value
|
||||
elif issubclass(exc_type, OutdatedFirmwareError):
|
||||
raise UserFacingException(exc_value) from exc_value
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue