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:
|
||||
if line.startswith("NAME="):
|
||||
detectOS.result = OS_RELEASE.get(
|
||||
line.split("=")[-1].strip().lower())
|
||||
line.replace('"', '').split("=")[-1].strip().lower())
|
||||
elif line.startswith("VERSION_ID="):
|
||||
try:
|
||||
version = float(line.split("=")[1].replace("\"", ""))
|
||||
|
|
Reference in New Issue
Block a user