Browse Source

[trac983] changed the exception type for the invalid construction of
RequestACL as a result of review.

JINMEI Tatuya 14 years ago
parent
commit
e090ab5087
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/lib/python/isc/acl/dns_requestacl_python.cc

+ 1 - 2
src/lib/python/isc/acl/dns_requestacl_python.cc

@@ -60,8 +60,7 @@ s_RequestACL::s_RequestACL() {}
 namespace {
 int
 RequestACL_init(PyObject*, PyObject*, PyObject*) {
-    PyErr_SetString(PyExc_TypeError,
-                    "RequestACL cannot be directly constructed");
+    PyErr_SetString(po_ACLError, "RequestACL cannot be directly constructed");
     return (-1);
 }