diff --git a/electrum/wallet.py b/electrum/wallet.py index b6f910899..651fa3dcc 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -2968,6 +2968,8 @@ def check_password_for_directory(config, old_password, new_password=None): failed = [] for filename in os.listdir(dirname): path = os.path.join(dirname, filename) + if not os.path.isfile(path): + continue basename = os.path.basename(path) storage = WalletStorage(path) if not storage.is_encrypted():