mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
update: do not crash on {env: } in paths in config.yml
This commit is contained in:
parent
4d66f30faf
commit
ecdf47d893
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ def fill_config_defaults(thisconfig):
|
||||||
|
|
||||||
# Expand paths (~users and $vars)
|
# Expand paths (~users and $vars)
|
||||||
def expand_path(path):
|
def expand_path(path):
|
||||||
if path is None:
|
if not path or not isinstance(path, str):
|
||||||
return None
|
return None
|
||||||
orig = path
|
orig = path
|
||||||
path = os.path.expanduser(path)
|
path = os.path.expanduser(path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue