Fix get_active_config_file() crashing

This commit is contained in:
allegroai 2021-04-28 18:44:13 +03:00
parent 9014f2e680
commit bdd8d224ac

View File

@ -59,7 +59,7 @@ def is_config_file(path):
def get_active_config_file():
f = LOCAL_CONFIG_FILE_OVERRIDE_VAR.get()
if exists(expanduser(expandvars(f))):
if f and exists(expanduser(expandvars(f))):
return f
for f in LOCAL_CONFIG_FILES:
if exists(expanduser(expandvars(f))):