]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2853] make sure to return None (Py_None) for py methods returning None.
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 6 Jun 2013 16:36:33 +0000 (09:36 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 6 Jun 2013 16:36:33 +0000 (09:36 -0700)
src/lib/python/isc/datasrc/zonewriter_python.cc

index 2f56808c1becf3d7c95566d0365930f43c47ee81..8efcb16c2d282443b7d25d9e0933fc4f4369bd63 100644 (file)
@@ -94,6 +94,8 @@ ZoneWriter_load(PyObject* po_self, PyObject*) {
                         "Unknown C++ exception");
         return (NULL);
     }
+
+    return (Py_None);
 }
 
 PyObject*
@@ -109,6 +111,8 @@ ZoneWriter_install(PyObject* po_self, PyObject*) {
                         "Unknown C++ exception");
         return (NULL);
     }
+
+    return (Py_None);
 }
 
 PyObject*
@@ -124,6 +128,8 @@ ZoneWriter_cleanup(PyObject* po_self, PyObject*) {
                         "Unknown C++ exception");
         return (NULL);
     }
+
+    return (Py_None);
 }
 
 // This list contains the actual set of functions we have in