diff options
Diffstat (limited to 'python/modules/IcePy/Proxy.cpp')
-rw-r--r-- | python/modules/IcePy/Proxy.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/python/modules/IcePy/Proxy.cpp b/python/modules/IcePy/Proxy.cpp index e2121d5e252..fd44da8defc 100644 --- a/python/modules/IcePy/Proxy.cpp +++ b/python/modules/IcePy/Proxy.cpp @@ -1172,8 +1172,15 @@ extern "C" static PyObject* proxyIceEncodingVersion(ProxyObject* self, PyObject* args) { + PyObject* versionType = IcePy::lookupType("Ice.EncodingVersion"); + PyObject* p; + if(!PyArg_ParseTuple(args, STRCAST("O!"), versionType, &p)) + { + return 0; + } + Ice::EncodingVersion val; - if(!getEncodingVersion(args, val)) + if(!getEncodingVersion(p, val)) { PyErr_Format(PyExc_ValueError, STRCAST("ice_encodingVersion requires an encoding version")); return 0; |