do not try to parse lines which do not conform to the browserpass format

This commit is contained in:
Franzi 2021-07-03 19:44:28 +02:00
parent fc45143799
commit 54062d3a94
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ def _get_contents_from_pass(identifier: str):
if len(pass_output) > 1:
for line in pass_output[1:]:
if not ':' in line:
continue
attr, value = line.split(':', 1)
cache[identifier]['attrs'][attr] = value.strip()