[python] dont crash for trajectory parse error