summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Communicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'py/modules/IcePy/Communicator.cpp')
-rw-r--r--py/modules/IcePy/Communicator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/modules/IcePy/Communicator.cpp b/py/modules/IcePy/Communicator.cpp
index d9fd5bfeaae..221b45704b0 100644
--- a/py/modules/IcePy/Communicator.cpp
+++ b/py/modules/IcePy/Communicator.cpp
@@ -902,6 +902,10 @@ communicatorFindAdminFacet(CommunicatorObject* self, PyObject* args)
{
return createNativePropertiesAdmin(props);
}
+
+ // If the facet isn't supported in Python, just return an Ice.Object.
+ PyTypeObject* objectType = reinterpret_cast<PyTypeObject*>(lookupType("Ice.Object"));
+ return objectType->tp_alloc(objectType, 0);
}
}
catch(const Ice::Exception& ex)