Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TannazVhdBMWExt committed Oct 9, 2024
1 parent 085a152 commit 1da5628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lobster/config/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ def load(mh, file_name):
if len(item["trace_from"]) > 0:
for trace_from in item["trace_from"]:
if not set(trace_from).issubset(item_names):
mh.error(set(trace_to).issubset(item_names),
"cannot trace from %s items" % ",".join(trace_from))
mh.error("cannot trace from %s items" %
",".join(trace_from))

return ast

Expand Down
3 changes: 2 additions & 1 deletion lobster/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def determine_status(self, config, stab):
break
# or
refs_levels = [stab[ref.key()].level for ref in self.ref_down]
ok_down = len(set(refs_levels).intersection(set(trace_from))) > 0
ok_down = len(set(refs_levels)
.intersection(set(trace_from))) > 0

# Set status
if self.has_error:
Expand Down

0 comments on commit 1da5628

Please sign in to comment.