Skip to content
Snippets Groups Projects
Commit 8f20534e authored by Beojan Stanislaus's avatar Beojan Stanislaus Committed by Tadej Novak
Browse files

SystemExit with string causes cryptic error -- Change to ValueError

SystemExit with string causes cryptic error -- Change to ValueError
parent 224a57ee
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