From 54cdd551fead951b8c04624ea0b97090b3b10668 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 9 Jan 2016 00:27:22 +0900 Subject: [PATCH] Avoid unnecessary exception on missing libs --- plugins/trezor/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py index cb05249e..3b876fce 100644 --- 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