From 72873a1bd4b731a219cebdf214204dd63cea66a0 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sun, 22 Jul 2018 14:48:08 +0300 Subject: [PATCH] Prevent KeyError in checkdeps if detectOS() returns None --- checkdeps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/checkdeps.py b/checkdeps.py index 28b1e559..c0e10051 100755 --- a/checkdeps.py +++ b/checkdeps.py @@ -137,6 +137,8 @@ if prereqs: OPSYS = detectOS() CMD = PACKAGE_MANAGER[OPSYS] if OPSYS in PACKAGE_MANAGER else 'UNKNOWN_INSTALLER' for lhs, rhs in EXTRAS_REQUIRE.items(): + if OPSYS is None: + break if rhs and any([ EXTRAS_REQUIRE_DEPS[x][OPSYS] for x in rhs