Skip to content

Commit

Permalink
default msg
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Aug 14, 2023
1 parent 295ddda commit 653b0bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions looper/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def add_sample(self, sample, rerun=False):
sample_statuses = fetch_sample_flags(self.prj, sample, self.pl_name)

use_this_sample = True # default to running this sample
msg = None
if sample_statuses:
status_str = ', '.join(sample_statuses)
failed_flag = any("failed" in x for x in sample_statuses)
Expand All @@ -441,8 +442,8 @@ def add_sample(self, sample, rerun=False):
else:
msg = f"> Skipping sample because rerun requested, but no failed flag found. Status: {status_str}"
use_this_sample = False

_LOGGER.info(msg)
if msg:
_LOGGER.info(msg)

skip_reasons = []
validation = {}
Expand Down

0 comments on commit 653b0bd

Please sign in to comment.