keyringer backend: handle 'Nothing matches' output, keyringer doesn't fail properly
This commit is contained in:
1 parent
e8a23e0ede
commit
e7dcb39efb
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user