keyringer backend: handle 'Nothing matches' output, keyringer doesn't fail properly

This commit is contained in:
2026-01-21 11:30:34 +01:00
parent e8a23e0ede
commit e7dcb39efb
+4 -1
View File
@@ -121,7 +121,10 @@ class Keyringer(PasswordManager):
check=True,
encoding="utf-8",
)
return result.stdout.strip()
password = result.stdout.strip()
if "Nothing matches , try again." in password:
raise SystemExit(f"No password stored for {secretname}")
return password
@dataclasses.dataclass