Fix exception 'KeyError: None' in checkdeps introduced in e92a85e,

Fixes #1316
This commit is contained in:
Dmitri Bogomolov 2018-07-19 14:06:34 +03:00
parent 996a48f298
commit e1d2ead701
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 1 additions and 1 deletions

View File

@ -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("\"", ""))