summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-04-04 00:22:29 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-04-04 00:22:29 +0200
commitaed295b97e649ef7db4300cc400bc2bd9b1a03b0 (patch)
tree5d29728797f2c34e4946ce4a2604be2fb8202f4e /source4/auth
parent8afd52a6418125100a5e8a6a4312c0460e57ac88 (diff)
downloadsamba-aed295b97e649ef7db4300cc400bc2bd9b1a03b0.tar.gz
samba-aed295b97e649ef7db4300cc400bc2bd9b1a03b0.tar.bz2
samba-aed295b97e649ef7db4300cc400bc2bd9b1a03b0.zip
s4-python: Remove convenience macro PyErr_SetStringError.
This macro assumed that all errors were runtime errors.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/credentials/pycredentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/credentials/pycredentials.c b/source4/auth/credentials/pycredentials.c
index f5e802958b..cd578a5c11 100644
--- a/source4/auth/credentials/pycredentials.c
+++ b/source4/auth/credentials/pycredentials.c
@@ -272,7 +272,7 @@ static PyObject *py_creds_get_named_ccache(py_talloc_Object *self, PyObject *arg
return PyCredentialCacheContainer_from_ccache_container(ccc);
}
- PyErr_SetStringError(error_string);
+ PyErr_SetString(PyExc_RuntimeError, error_string);
talloc_free(event_ctx);
return NULL;