ttrezor: fix minor error handling issue - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ec86850a2e7caa16d96e08c090e98d3b6be4ad1a DIR parent e2eb051eed67d0c8f404fe69d94b28b33f8d6d98 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 13 Feb 2019 18:33:48 +0100 ttrezor: fix minor error handling issue AttributeError: 'TrezorFailure' object has no attribute 'message' Diffstat: M electrum/plugins/trezor/clientbase… | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/plugins/trezor/clientbase.py b/electrum/plugins/trezor/clientbase.py t@@ -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: