diff --git a/python/libvirt-override.c b/python/libvirt-override.c index c51dd3fac964e59cebff5d170e7a9bd849c9959d..768144a009690fdbf9e60dd58b53c88f8f341fa3 100644 --- a/python/libvirt-override.c +++ b/python/libvirt-override.c @@ -1776,8 +1776,10 @@ static int virConnectCredCallbackWrapper(virConnectCredentialPtr cred, PyErr_Clear(); pyret = PyEval_CallObject(pycb, list); - if (PyErr_Occurred()) + if (PyErr_Occurred()) { + PyErr_Print(); goto cleanup; + } ret = PyLong_AsLong(pyret); if (ret == 0) {