summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/Communicator.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2018-02-12 16:06:06 -0800
committerMark Spruiell <mes@zeroc.com>2018-02-12 16:06:06 -0800
commit4d08ac5ea3a35eed33d8e537f9c4813690eae2ed (patch)
tree487bc621ce0a31c6b6e97e3ba9ca5a80085430b8 /python/modules/IcePy/Communicator.cpp
parentUpdate MSBuild project to use 5.0.3 zeroc.icebuilder.msbuild package (diff)
downloadice-4d08ac5ea3a35eed33d8e537f9c4813690eae2ed.tar.bz2
ice-4d08ac5ea3a35eed33d8e537f9c4813690eae2ed.tar.xz
ice-4d08ac5ea3a35eed33d8e537f9c4813690eae2ed.zip
ICE-8293 - Reduce casting in Python extension
ICE-8661 - Connection.getAdapter returns bogus value in Python ICE-8662 - Review Python type checking ICE-8663 - Accept None for callbacks
Diffstat (limited to 'python/modules/IcePy/Communicator.cpp')
-rw-r--r--python/modules/IcePy/Communicator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/modules/IcePy/Communicator.cpp b/python/modules/IcePy/Communicator.cpp
index 17f1ca92ab9..aff49ef6f6b 100644
--- a/python/modules/IcePy/Communicator.cpp
+++ b/python/modules/IcePy/Communicator.cpp
@@ -889,6 +889,7 @@ communicatorBeginFlushBatchRequests(CommunicatorObject* self, PyObject* args, Py
PyObject* compressBatchType = lookupType("Ice.CompressBatch");
if(!PyObject_IsInstance(compressBatch, reinterpret_cast<PyObject*>(compressBatchType)))
{
+ PyErr_Format(PyExc_ValueError, STRCAST("expected an Ice.CompressBatch enumerator"));
return 0;
}