Browse Source
trezor: fix minor error handling issue
AttributeError: 'TrezorFailure' object has no attribute 'message'
sqlite_db
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
1 deletions
-
electrum/plugins/trezor/clientbase.py
|
|
@ -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: |
|
|
|