clan-cli: secrets: treemft

This commit is contained in:
Louis Opter
2024-11-04 11:47:54 -08:00
committed by Mic92
parent daf51f523e
commit 8d53568d95

View File

@@ -291,7 +291,7 @@ def collect_private_age_keys() -> Sequence[str]:
try:
contents = Path(key_path).read_text().strip()
lines = contents.splitlines() # as in parse.go in age:
private_age_keys.extend(l for l in lines if l and not l.startswith("#"))
private_age_keys.extend(ln for ln in lines if ln and not ln.startswith("#"))
except FileNotFoundError:
return
except Exception as ex: