[mod] explicit error
This commit is contained in:
parent
0f33a8e24a
commit
b7633fb31a
@ -7,7 +7,7 @@ import yaml
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
if not os.path.exists(os.path.join(os.getcwd(), "settings.yaml")):
|
if not os.path.exists(os.path.join(os.getcwd(), "settings.yaml")):
|
||||||
sys.stderr.write("I can't find a settings.yaml, abort\n")
|
sys.stderr.write("I can't find a settings.yaml in the current working directory, abort\n")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
settings = yaml.safe_load("settings.yaml")
|
settings = yaml.safe_load("settings.yaml")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user