richardphibel / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

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

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