Changing exit code on yaml path not found in parsing script

This commit is contained in:
Cody Shepherd 2018-10-16 08:36:22 -07:00
parent 40c4519a20
commit cb0f121d9f
No known key found for this signature in database
GPG Key ID: 0DB7E5F05C3FAB5F

View File

@ -27,7 +27,7 @@ LINE_PREFIX = 'snap:'
sys.stderr.write("yaml path: {}\n".format(YAML_PATH)) sys.stderr.write("yaml path: {}\n".format(YAML_PATH))
if not os.path.isfile(YAML_PATH): if not os.path.isfile(YAML_PATH):
sys.stderr.write("yaml path not found.\n") sys.stderr.write("yaml path not found.\n")
exit(0) exit(1)
else: else:
sys.stderr.write("yaml path found.\n") sys.stderr.write("yaml path found.\n")