Fix exception 'KeyError: None' in checkdeps introduced in e92a85e
,
Fixes #1316
This commit is contained in:
parent
996a48f298
commit
e1d2ead701
|
@ -137,7 +137,7 @@ def detectOSRelease():
|
||||||
for line in osRelease:
|
for line in osRelease:
|
||||||
if line.startswith("NAME="):
|
if line.startswith("NAME="):
|
||||||
detectOS.result = OS_RELEASE.get(
|
detectOS.result = OS_RELEASE.get(
|
||||||
line.split("=")[-1].strip().lower())
|
line.replace('"', '').split("=")[-1].strip().lower())
|
||||||
elif line.startswith("VERSION_ID="):
|
elif line.startswith("VERSION_ID="):
|
||||||
try:
|
try:
|
||||||
version = float(line.split("=")[1].replace("\"", ""))
|
version = float(line.split("=")[1].replace("\"", ""))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user