From 9f47762c12decec49688fcdb658586ae136db0bc Mon Sep 17 00:00:00 2001 From: slush0 Date: Fri, 18 Jul 2014 15:40:31 +0200 Subject: [PATCH] Fixes dependency to pinmatrix --- plugins/trezor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/trezor.py b/plugins/trezor.py index e9da4c2b..5b305e34 100644 --- a/plugins/trezor.py +++ b/plugins/trezor.py @@ -17,10 +17,11 @@ try: import cmdtr from trezorlib.client import types from trezorlib.client import proto, BaseClient, ProtocolMixin - from trezorlib.pinmatrix import PinMatrixWidget + from trezorlib.qt.pinmatrix import PinMatrixWidget from trezorlib.transport import ConnectionError TREZOR = True -except: TREZOR = False +except ImportError: + TREZOR = False def log(msg): stderr.write("%s\n" % msg)