Skip to content

Commit

Permalink
Fix error handling in the tp_setattro slot
Browse files Browse the repository at this point in the history
The docs say this callback is supposed to return -1 on error.

Fixes #30.
  • Loading branch information
mgedmin committed Jun 27, 2019
1 parent cd9691f commit db1b3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/proxy/_zope_proxy_proxy.c
Expand Up @@ -312,7 +312,7 @@ wrap_setattro(PyObject *self, PyObject *name, PyObject *value)
#endif

if (name_as_string == NULL) {
return NULL;
goto finally;
}

descriptor = WrapperType_Lookup(self->ob_type, name);
Expand Down

0 comments on commit db1b3f4

Please sign in to comment.