From bd25cadb71a1bf0f7bcf3e85aa23db4acd4ea88e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 15 Aug 2020 21:12:38 +0200 Subject: [PATCH] lib: fix config possibly iterating None --- passbook/lib/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/lib/config.py b/passbook/lib/config.py index 528ca91bf..d4d9cb39f 100644 --- a/passbook/lib/config.py +++ b/passbook/lib/config.py @@ -136,7 +136,7 @@ class ConfigLoader: root = root.get(sub, None) # Walk each component of the path for comp in path.split(sep): - if comp in root: + if root and comp in root: root = root.get(comp) else: return default