electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 54cdd551fead951b8c04624ea0b97090b3b10668
parent 9f0d2f4d21e3725cc2095671f1d88a2cef3c0db4
Author: Neil Booth <kyuupichan@gmail.com>
Date:   Sat,  9 Jan 2016 00:27:22 +0900

Avoid unnecessary exception on missing libs

Diffstat:
Mplugins/trezor/plugin.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py @@ -167,7 +167,8 @@ class TrezorCompatiblePlugin(BasePlugin, ThreadJob): self.device = self.wallet_class.device self.wallet_class.plugin = self self.prevent_timeout = time.time() + 3600 * 24 * 365 - self.device_manager().register_devices(self, self.DEVICE_IDS) + if self.libraries_available: + self.device_manager().register_devices(self, self.DEVICE_IDS) def is_enabled(self): return self.libraries_available