From fed327b58005ff4a884bba99820aa905c990bda9 Mon Sep 17 00:00:00 2001 From: YourUsername Date: Mon, 17 Jun 2024 07:40:43 +0000 Subject: [PATCH] refac: ignoring keys starting with --- src/communex/compat/key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communex/compat/key.py b/src/communex/compat/key.py index eb68fd0a..741ff79d 100644 --- a/src/communex/compat/key.py +++ b/src/communex/compat/key.py @@ -185,7 +185,7 @@ def local_key_addresses( home = Path.home() key_dir = home / '.commune' / "key" - key_names = [f.stem for f in key_dir.iterdir() if f.is_file()] + key_names = [f.stem for f in key_dir.iterdir() if f.is_file() and not f.name.startswith('.')] addresses_map: dict[str, Ss58Address] = {}