[svn] commit: r2894 - /branches/trac232/src/lib/dns/python/rrclass_python.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Sep 9 14:10:59 UTC 2010


Author: jelte
Date: Thu Sep  9 14:10:58 2010
New Revision: 2894

Log:
that file should have been reverted before previous commit

Modified:
    branches/trac232/src/lib/dns/python/rrclass_python.cc

Modified: branches/trac232/src/lib/dns/python/rrclass_python.cc
==============================================================================
--- branches/trac232/src/lib/dns/python/rrclass_python.cc (original)
+++ branches/trac232/src/lib/dns/python/rrclass_python.cc Thu Sep  9 14:10:58 2010
@@ -165,9 +165,7 @@
     // (the way to do exceptions is to set PyErr and return -1)
     try {
         if (PyArg_ParseTuple(args, "s", &s)) {
-            std::cout << "[XX] CREATING RRCLASS '" << s << "'" << std::endl;
                 self->rrclass = new RRClass(s);
-            std::cout << "[XX] CREATED RRCLASS" << std::endl;
             return (0);
         } else if (PyArg_ParseTuple(args, "I", &i)) {
             PyErr_Clear();
@@ -190,9 +188,8 @@
         }
     // Incomplete is never thrown, a type error would have already been raised
     //when we try to read the 2 bytes above
-    } catch (const isc::Exception& ic) {
+    } catch (const isc::dns::InvalidRRClass& ic) {
         PyErr_Clear();
-        std::cout << "[XX] ERROR CREATING" << std::endl;
         PyErr_SetString(po_InvalidRRClass, ic.what());
         return (-1);
     }




More information about the bind10-changes mailing list