From be438bdd60529dc1ad131c9f45325f082082e33f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 14 Jan 2021 14:59:14 +0100 Subject: [PATCH] check_password_for_directory: skip non-files --- electrum/wallet.py | 2 ++ 1 file changed, 2 insertions(+) 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():