small None error fix

pull/240/head
meisnate12 4 years ago
parent 36117b0c18
commit 3c8d2bd2c2

@ -153,7 +153,7 @@ class Config:
if var_type == "path" and default and os.path.exists(os.path.abspath(default)): if var_type == "path" and default and os.path.exists(os.path.abspath(default)):
return default return default
elif var_type == "path" and default: elif var_type == "path" and default:
if attribute in data and data[attribute]: if data and attribute in data and data[attribute]:
message = f"neither {data[attribute]} or the default path {default} could be found" message = f"neither {data[attribute]} or the default path {default} could be found"
else: else:
message = f"no {text} found and the default path {default} could not be found" message = f"no {text} found and the default path {default} could not be found"

Loading…
Cancel
Save