summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
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));
}