diff --git a/src/libcode/vx_pointdata_python/python_pointdata.cc b/src/libcode/vx_pointdata_python/python_pointdata.cc index 35e20e61e2..4b3834a1d2 100644 --- a/src/libcode/vx_pointdata_python/python_pointdata.cc +++ b/src/libcode/vx_pointdata_python/python_pointdata.cc @@ -546,12 +546,19 @@ if ( ! module_obj ) { bool result = false; PyObject *met_point_data = get_python_object(module_obj, python_key_point_data); -if ( met_point_data ) { +if ( met_point_data && met_point_data != &_Py_NoneStruct) { result = process_point_data(met_point_data, met_pd_out); } else { PyObject *point_data = get_python_object(module_obj, python_key_point_data_list); - result = process_point_data_list(point_data, met_pd_out, filters); + if ( point_data && point_data != &_Py_NoneStruct) + result = process_point_data_list(point_data, met_pd_out, filters); + else { + mlog << Warning << "\n" << method_name + << "no \"" << python_key_point_data << "\" and \"" + << python_key_point_data_list << "\" from " + << script_name << "\"\n\n"; + } } return result;