hw plugins: log exception at import time (but only if interesting)
related: https://github.com/spesmilo/electrum/issues/6928
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user