update: do not crash on {env: } in paths in config.yml

This commit is contained in:
Hans-Christoph Steiner 2025-02-22 23:30:55 +01:00
parent 4d66f30faf
commit ecdf47d893

View file

@ -361,7 +361,7 @@ def fill_config_defaults(thisconfig):
# Expand paths (~users and $vars)
def expand_path(path):
if path is None:
if not path or not isinstance(path, str):
return None
orig = path
path = os.path.expanduser(path)