Fix to script logging

This commit is contained in:
Cody Shepherd 2018-10-16 13:33:36 -07:00
parent 34c29fa692
commit becac6ac09
No known key found for this signature in database
GPG Key ID: 0DB7E5F05C3FAB5F

View File

@ -31,10 +31,10 @@ LINE_PREFIX = 'snap:'
log("yaml path: {}".format(YAML_PATH))
if not os.path.isfile(YAML_PATH):
sys.stderr.write("yaml path not found.\n")
log("yaml path not found.")
exit(1)
else:
sys.stderr.write("yaml path found.\n")
log("yaml path found.")
# Open the seed.yaml and ingest its contents
with open(YAML_PATH, 'r') as fh: