From e1d2ead7019f30330a9999e49411a609839b6e41 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 19 Jul 2018 14:06:34 +0300 Subject: [PATCH] Fix exception 'KeyError: None' in checkdeps introduced in e92a85e, Fixes #1316 --- src/depends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/depends.py b/src/depends.py index 06150642..39f5e759 100755 --- a/src/depends.py +++ b/src/depends.py @@ -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("\"", ""))