Browse Source

[1179] add some missing returns

Jelte Jansen 13 years ago
parent
commit
1f81b4916f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/python/isc/datasrc/client_python.cc

+ 4 - 0
src/lib/python/isc/datasrc/client_python.cc

@@ -110,8 +110,10 @@ DataSourceClient_getIterator(PyObject* po_self, PyObject* args) {
             return (createZoneIteratorObject(self->cppobj->getIterator(isc::dns::python::PyName_ToName(name_obj))));
         } catch (const isc::NotImplemented& ne) {
             PyErr_SetString(getDataSourceException("NotImplemented"), ne.what());
+            return (NULL);
         } catch (const DataSourceError& dse) {
             PyErr_SetString(getDataSourceException("Error"), dse.what());
+            return (NULL);
         } catch (const std::exception& exc) {
             PyErr_SetString(getDataSourceException("Error"), exc.what());
             return (NULL);
@@ -132,8 +134,10 @@ DataSourceClient_getUpdater(PyObject* po_self, PyObject* args) {
             return (createZoneUpdaterObject(self->cppobj->getUpdater(isc::dns::python::PyName_ToName(name_obj), replace)));
         } catch (const isc::NotImplemented& ne) {
             PyErr_SetString(getDataSourceException("NotImplemented"), ne.what());
+            return (NULL);
         } catch (const DataSourceError& dse) {
             PyErr_SetString(getDataSourceException("Error"), dse.what());
+            return (NULL);
         } catch (const std::exception& exc) {
             PyErr_SetString(getDataSourceException("Error"), exc.what());
             return (NULL);