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

Fixes #1316
python3android
Dmitri Bogomolov 5 years ago
parent 996a48f298
commit e1d2ead701
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

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

Loading…
Cancel
Save