summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-07-16 13:29:23 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-07-16 13:29:23 +0000
commit3827d324bb20ab60b7a39537fd3b768c9bef4c73 (patch)
tree669eb0790b1f4c011516d3871fcb7edf4ce5b194 /python
parent0438887aa3feef58aa8c0cc574b16f5999f4c9cd (diff)
downloadlasso-3827d324bb20ab60b7a39537fd3b768c9bef4c73.tar.gz
lasso-3827d324bb20ab60b7a39537fd3b768c9bef4c73.tar.xz
lasso-3827d324bb20ab60b7a39537fd3b768c9bef4c73.zip
*** empty log message ***
Diffstat (limited to 'python')
-rw-r--r--python/environs/py_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/environs/py_user.c b/python/environs/py_user.c
index 5de637a9..5f219074 100644
--- a/python/environs/py_user.c
+++ b/python/environs/py_user.c
@@ -120,6 +120,10 @@ PyObject *user_get_next_providerID(PyObject *self, PyObject *args) {
else return NULL;
remote_providerID = lasso_user_get_next_providerID(LassoUser_get(user_obj));
+ if(remote_providerID==NULL){
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
return (charPtr_wrap(remote_providerID));
}