do not try to parse lines which do not conform to the browserpass format
This commit is contained in:
parent
fc45143799
commit
54062d3a94
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ def _get_contents_from_pass(identifier: str):
|
||||||
|
|
||||||
if len(pass_output) > 1:
|
if len(pass_output) > 1:
|
||||||
for line in pass_output[1:]:
|
for line in pass_output[1:]:
|
||||||
|
if not ':' in line:
|
||||||
|
continue
|
||||||
|
|
||||||
attr, value = line.split(':', 1)
|
attr, value = line.split(':', 1)
|
||||||
|
|
||||||
cache[identifier]['attrs'][attr] = value.strip()
|
cache[identifier]['attrs'][attr] = value.strip()
|
||||||
|
|
Loading…
Reference in a new issue