python trace instead of error message when simulation name is missing

Issue #1274 new
Roland Haas created an issue

Doing:

simfactory/bin/sim create-submit --configuration bns_all --parfile ~/scratch/cactus/mhd/MBondi_B1.51253333333333_Mdot1_Sch_Highres.par --procs 16 --walltime 4:0:0

results in

Traceback (most recent call last):
  File "simfactory/bin/../lib/sim.py", line 148, in ?
    main()
  File "simfactory/bin/../lib/sim.py", line 144, in main
    CommandDispatch()
  File "simfactory/bin/../lib/sim.py", line 106, in CommandDispatch
    module.main()
  File "/panfs/ds06/sxs/rhaas/shc/cactus/Zelmani/simfactory/lib/sim-manage.py", line 397, in main
    CommandDispatch()
  File "/panfs/ds06/sxs/rhaas/shc/cactus/Zelmani/simfactory/lib/sim-manage.py", line 376, in CommandDispatch
    exec("command_%s()" % command)
  File "<string>", line 1, in ?
  File "/panfs/ds06/sxs/rhaas/shc/cactus/Zelmani/simfactory/lib/sim-manage.py", line 151, in command_create_submit
    simulationName = simenv.OptionsManager.args.pop(0)
IndexError: pop from empty list

rather than some more useful error message that no simulation name was specified.

Keyword:

Comments (0)

  1. Log in to comment