This commit is contained in:
meisnate12 2021-02-23 10:01:14 -05:00
parent a11d2fbdf7
commit 1a3b224244

View file

@ -121,7 +121,10 @@ class Config:
return default
elif var_type == "path" and default:
default = None
message = "neither {} or the default path {} could be found".format(data[attribute], default)
if attribute in data and data[attribute]:
message = "neither {} or the default path {} could be found".format(data[attribute], default)
else:
message = "no {} found and the default path {} could be found".format(text, default)
if default is not None or default_is_none:
message = message + " using {} as default".format(default)
message = message + endline