Skip to content
Snippets Groups Projects
Commit d23b84f3 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'fix-pileup-maxevt-minus1-error' into 'main'

SystemExit with string causes cryptic error -- Change to ValueError

See merge request atlas/athena!71346
parents dbde545d 8f20534e
No related branches found
Tags nightly/main/2024-03-14T2001
No related merge requests found
......@@ -142,8 +142,7 @@ def generatePileUpProfile(flags,
totalEvents = flags.ExecutorSplitting.TotalEvents
if maxEvents == -1:
raise SystemExit("maxEvents = %d is not supported! Please set this to the number of events per file times the number of files per job." % (
maxEvents,))
raise ValueError("maxEvents = -1 is not supported! Please set this to the number of events per file times the number of files per job.")
if not doNotCorrectMaxEvents and not flags.ExecutorSplitting.TotalSteps > 1:
# round up to nearest 100 events..
corrMaxEvents = ceil(float(maxEvents) / 100.0) * 100.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment