Blame SOURCES/0005-Handle-exception-in-a-python-binding-by-the-proper-function-RhBug-1870492.patch

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