diff --git a/create_db.py b/create_db.py index 94c7fcf..49505cc 100644 --- a/create_db.py +++ b/create_db.py @@ -201,7 +201,6 @@ def __init__(self, message): if not no_error: # TODO send an email - # Add the log line to indicate to autodeploy that there were errors final_words = '\nErrors: ' for module, status in status.items(): if status != STATUS_OK: @@ -212,7 +211,9 @@ def __init__(self, message): # shutil.rmtree(tmp_dir) logging.info(f'Finished: {sys.argv} {final_words}') - logging.error('There were errors!') + if not no_error: + # Add the log line to indicate to autodeploy that there were errors. + logging.error('There were errors!') if args.archive: # Push the dump and log to ihr archive