Skip to content

Commit

Permalink
Fix logic error in FinalPath checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Oct 3, 2023
1 parent f738fee commit 64be818
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions FWCore/ParameterSet/python/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,10 +1285,9 @@ def _insertPaths(self, processPSet, nodeVisitor):
iFinalPath.resolve(self.__dict__)
finalpathValidator.setLabel(finalpathname)
iFinalPath.visit(finalpathValidator)
if finalpathValidator.filtersOnFinalpaths or finalpathValidator.producersOnFinalpaths:
names = [p.label_ for p in finalpathValidator.filtersOnFinalpaths]
names.extend( [p.label_ for p in finalpathValidator.producersOnFinalpaths])
raise RuntimeError("FinalPath %s has non OutputModules %s" % (finalpathname, ",".join(names)))
filtersOrProducers = finalpathValidator.filtersOnFinalpaths + finalpathValidator.producersOnFinalpaths
if filtersOrProducers:
raise RuntimeError("FinalPath %s has non OutputModules %s" % (finalpathname, ",".join(filtersOrProducers)))
modulesOnFinalPath.extend(iFinalPath.moduleNames())
for m in modulesOnFinalPath:
mod = getattr(self, m)
Expand Down

0 comments on commit 64be818

Please sign in to comment.