mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-12 17:48:09 +00:00
print info on skipping transports
This commit is contained in:
parent
e9958d115f
commit
58faa02263
@ -25,19 +25,22 @@ sys.path = ['../../'] + sys.path
|
|||||||
try:
|
try:
|
||||||
from trezorlib.transport_hid import HidTransport
|
from trezorlib.transport_hid import HidTransport
|
||||||
HID_ENABLED = True
|
HID_ENABLED = True
|
||||||
except:
|
except Exception as e:
|
||||||
|
print('HID transport disabled:', e.message, e.args)
|
||||||
HID_ENABLED = False
|
HID_ENABLED = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from trezorlib.transport_pipe import PipeTransport
|
from trezorlib.transport_pipe import PipeTransport
|
||||||
PIPE_ENABLED = True
|
PIPE_ENABLED = True
|
||||||
except:
|
except Exception as e:
|
||||||
|
print('PIPE transport disabled:', e.message, e.args)
|
||||||
PIPE_ENABLED = False
|
PIPE_ENABLED = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from trezorlib.transport_udp import UdpTransport
|
from trezorlib.transport_udp import UdpTransport
|
||||||
UDP_ENABLED = True
|
UDP_ENABLED = True
|
||||||
except:
|
except Exception as e:
|
||||||
|
print('UDP transport disabled:', e.message, e.args)
|
||||||
UDP_ENABLED = False
|
UDP_ENABLED = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user