Skip to content

Commit

Permalink
Only claim that there are errors if there are actual errors...
Browse files Browse the repository at this point in the history
  • Loading branch information
m-appel committed Sep 17, 2024
1 parent e9a7b49 commit ddea10e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions create_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit ddea10e

Please sign in to comment.