Skip to content

Commit

Permalink
per #2098, do not error if no commands were run
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Mar 22, 2023
1 parent 19414a7 commit 73277bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions metplus/util/config_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def write_all_commands(all_commands, config):
@returns False if no commands were provided, True otherwise
"""
if not all_commands:
config.logger.error("No commands were run. "
"Skip writing all_commands file")
config.logger.info("No commands were run. "
"Skip writing all_commands file")
return False

log_timestamp = config.getstr('config', 'LOG_TIMESTAMP')
Expand Down
4 changes: 1 addition & 3 deletions metplus/util/run_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def run_metplus(config):
# if process list contains any wrapper that should run commands
if any([item[0] not in NO_COMMAND_WRAPPERS for item in process_list]):
# write out all commands and environment variables to file
if not write_all_commands(all_commands, config):
# report an error if no commands were generated
total_errors += 1
write_all_commands(all_commands, config)

# compute total number of errors that occurred and output results
for process in processes:
Expand Down

0 comments on commit 73277bd

Please sign in to comment.