mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bb370e69b2
commit
12556e6e09
@ -9,7 +9,7 @@
|
||||
|
||||
static int copy_error_attr(PyObject *obj, const char* name, PyObject *dest) {
|
||||
PyObject *value = NULL;
|
||||
if (!PyObject_HasAttrString(obj, name)) return NULL;
|
||||
if (!PyObject_HasAttrString(obj, name)) return 0;
|
||||
value = PyObject_GetAttrString(obj, name);
|
||||
if (value == NULL) return 0;
|
||||
if (PyDict_SetItemString(dest, name, value) != 0) {Py_DECREF(value); return 0;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user