From 58faa0226360c381eb6c2b69ece59c2c39a47a17 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 25 Apr 2017 16:55:59 +0200 Subject: [PATCH] print info on skipping transports --- tests/device_tests/config.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/device_tests/config.py b/tests/device_tests/config.py index 006aa376c..95211b658 100644 --- a/tests/device_tests/config.py +++ b/tests/device_tests/config.py @@ -25,19 +25,22 @@ sys.path = ['../../'] + sys.path try: from trezorlib.transport_hid import HidTransport HID_ENABLED = True -except: +except Exception as e: + print('HID transport disabled:', e.message, e.args) HID_ENABLED = False try: from trezorlib.transport_pipe import PipeTransport PIPE_ENABLED = True -except: +except Exception as e: + print('PIPE transport disabled:', e.message, e.args) PIPE_ENABLED = False try: from trezorlib.transport_udp import UdpTransport UDP_ENABLED = True -except: +except Exception as e: + print('UDP transport disabled:', e.message, e.args) UDP_ENABLED = False