lib: fix config possibly iterating None

This commit is contained in:
Jens Langhammer 2020-08-15 21:12:38 +02:00
parent 7334599efd
commit bd25cadb71

View file

@ -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