diff --git a/electrum/plugins/ledger/ledger.py b/electrum/plugins/ledger/ledger.py index 17f084853..f10f97f44 100644 --- a/electrum/plugins/ledger/ledger.py +++ b/electrum/plugins/ledger/ledger.py @@ -137,6 +137,11 @@ def test_pin_unlocked(func): return func(self, *args, **kwargs) except SecurityStatusNotSatisfiedError: raise UserFacingException(_('Your Ledger is locked. Please unlock it.')) + except OSError as e: + _logger.exception('') + raise UserFacingException( + _('Communication with Ledger failed. Open the Bitcoin app and try again.') + f'\n{str(e)}', + ) return catch_exception