Skip to content

Commit

Permalink
Modifying warning message when archiving of timing data is disabled (4)
Browse files Browse the repository at this point in the history
Modified warning message when archiving of timing data is disabled (fourth
edit).

[BFB]
  • Loading branch information
Patrick Worley committed Oct 13, 2017
1 parent 5d8f11b commit 1313e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/CIME/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ def _save_prerun_timing_acme(case, lid):
base_case = case.get_value("CASE")
full_timing_dir = os.path.join(timing_dir, "performance_archive", getpass.getuser(), base_case, lid)
if os.path.exists(full_timing_dir):
logger.warning("{} already exists. Skipping archive of timing data and associated provenance".format(full_timing_dir))
logger.warning("{} already exists. Skipping archive of timing data and associated provenance.".format(full_timing_dir))
return

try:
os.makedirs(full_timing_dir)
except OSError:
logger.warning("{} cannot be created. Skipping archive of timing data and associated provenance".format(full_timing_dir))
logger.warning("{} cannot be created. Skipping archive of timing data and associated provenance.".format(full_timing_dir))
return

mach = case.get_value("MACH")
Expand Down

0 comments on commit 1313e5c

Please sign in to comment.