Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
261788dd
Commit
261788dd
authored
Jun 27, 2020
by
segfault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log invalid settings lines (refs:
#17136
)
parent
9d04c892
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/settings/utils.py
.../lib/python3/dist-packages/tailsgreeter/settings/utils.py
+3
-1
No files found.
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/settings/utils.py
View file @
261788dd
import
logging
import
os
import
shlex
from
typing
import
Dict
,
Union
...
...
@@ -23,7 +24,8 @@ def read_settings(filename: str) -> Dict[str, str]:
for
line
in
lines
:
try
:
key
,
value
=
line
.
split
(
'='
,
1
)
except
ValueError
:
except
ValueError
as
e
:
logging
.
warning
(
"Error parsing settings file
\"
%s
\"
, line
\"
%s
\"
: %s"
,
filename
,
line
,
e
)
continue
settings
[
key
]
=
value
.
rstrip
()
return
settings
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment