On SL5, onrec01:MAUS/.maus_trunk where it fails
[miceonrec01] .maus_trunk > python ./test_converter_debug.py
terminate called after throwing an instance of 'MAUS::Exception'
what(): In branch daq_event_type
Missing required branch daq_event_type converting json->cpp at ValueItem::_SetCppChild
Aborted
[miceonrec01] .maus_trunk >
When processing an invalid json, an exception is thrown by
common_cpp/JsonCppProcessors/ObjectProcessor-inl.hh:196
However as seen in the script attached, the exception does not seem to propagate to python on SL5.
On SL6, a python try/catch does indeed correctly catch the throw.
Same script on onrec03:MAUS/.maus_trunk
[mice@miceonrec03 .maus_trunk]$ python ./test_converter_debug.py
Exception In branch daq_event_type
Missing required branch daq_event_type converting json->cpp at ValueItem::_SetCppChild
.
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
[mice@miceonrec03 .maus_trunk]$