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
1 changed files with 1 additions and 1 deletions

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