1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

print info on skipping transports

This commit is contained in:
Pavol Rusnak 2017-04-25 16:55:59 +02:00
parent e9958d115f
commit 58faa02263
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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