Skip to content

Commit

Permalink
Parse file more forgivingly
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquence committed Sep 9, 2020
1 parent 48eb062 commit 29d944d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion launcher/sdw_util/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ def get_qubes_version():
try:
with open(OS_RELEASE_FILE) as f:
for line in f:
key, value = line.rstrip().split("=")
try:
key, value = line.rstrip().split("=")
except ValueError:
continue

if key == "NAME" and "qubes" in value.lower():
is_qubes = True
if key == "VERSION":
Expand Down

0 comments on commit 29d944d

Please sign in to comment.