diff options
author | Marius Gedminas <marius@gedmin.as> | 2019-06-27 15:09:28 +0300 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2019-06-27 15:09:28 +0300 |
commit | db1b3f4bce5e48ee465ca5d17920ed9984833969 (patch) | |
tree | 9a508f4b4ba297fb227d2d837017de59296a68c7 | |
parent | cd9691fd0665b7fec6b70ba7de87278c36986672 (diff) | |
download | zope-proxy-db1b3f4bce5e48ee465ca5d17920ed9984833969.tar.gz |
Fix error handling in the tp_setattro slot
The docs say this callback is supposed to return -1 on error.
Fixes #30.
-rw-r--r-- | src/zope/proxy/_zope_proxy_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/proxy/_zope_proxy_proxy.c b/src/zope/proxy/_zope_proxy_proxy.c index b64874a..572db97 100644 --- a/src/zope/proxy/_zope_proxy_proxy.c +++ b/src/zope/proxy/_zope_proxy_proxy.c @@ -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); |