1
0

hw plugins: log exception at import time (but only if interesting)

related: https://github.com/spesmilo/electrum/issues/6928
This commit is contained in:
SomberNight
2021-01-11 00:05:23 +01:00
parent de903103da
commit 2eb02931ae
4 changed files with 14 additions and 7 deletions

View File

@@ -36,7 +36,8 @@ try:
TREZORLIB = True
except Exception as e:
_logger.exception('error importing trezorlib')
if not (isinstance(e, ModuleNotFoundError) and e.name == 'trezorlib'):
_logger.exception('error importing trezor plugin deps')
TREZORLIB = False
class _EnumMissing: