Blob Blame History Raw
diff -u b/python/hawkey/goal-py.cpp b/python/hawkey/goal-py.cpp
--- b/python/hawkey/goal-py.cpp
+++ b/python/hawkey/goal-py.cpp
@@ -253,7 +253,7 @@
     int c_value = PyObject_IsTrue(value);
     self->goal->set_protect_running_kernel(c_value);
     return 0;
-} CATCH_TO_PYTHON
+} CATCH_TO_PYTHON_INT
 
 static PyObject *
 erase(_GoalObject *self, PyObject *args, PyObject *kwds) try
@@ -645,7 +645,7 @@
 
 static PyGetSetDef goal_getsetters[] = {
     {(char*)"actions",        (getter)get_actions, NULL, NULL, NULL},
-    {"protect_running_kernel", (getter)get_protect_running_kernel,
+    {(char*)"protect_running_kernel", (getter)get_protect_running_kernel,
         (setter)set_protect_running_kernel, NULL, NULL},
     {NULL}                /* sentinel */
 };