SystemExit with string causes cryptic error -- Change to ValueError
If a simulation job isn't given the maxEvents
option, an error is raised.
Previously a SystemExit
was raised, which caused a cryptic error message:
16:23:59 Traceback (most recent call last):
16:23:59 File "/pscratch/sd/b/beojan/Athena/build/build/x86_64-el9-gcc13-opt/bin/athena.py", line 182, in <module>
16:23:59 print( 'leaving with code %d: "%s"' % (exitcode, ExitCodes.what(exitcode)) )
16:23:59 TypeError: %d format: a number is required, not str
Note that with this error message, there was no indication of what caused the error.