summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Util.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2007-02-05 20:07:22 +0000
committerMark Spruiell <mes@zeroc.com>2007-02-05 20:07:22 +0000
commit6b2d904529eed66ea559af16820e2093d1859704 (patch)
treed8b87aa44ff7616963c1cf9afe8dcd0e16a825f2 /py/modules/IcePy/Util.cpp
parentFix warning (diff)
downloadice-6b2d904529eed66ea559af16820e2093d1859704.tar.bz2
ice-6b2d904529eed66ea559af16820e2093d1859704.tar.xz
ice-6b2d904529eed66ea559af16820e2093d1859704.zip
bug 1753: Ice.initialize does not accept only InitializationData
Diffstat (limited to 'py/modules/IcePy/Util.cpp')
-rw-r--r--py/modules/IcePy/Util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/Util.cpp b/py/modules/IcePy/Util.cpp
index 32d587532d3..7b61eea86a4 100644
--- a/py/modules/IcePy/Util.cpp
+++ b/py/modules/IcePy/Util.cpp
@@ -321,6 +321,7 @@ IcePy::listToStringSeq(PyObject* l, Ice::StringSeq& seq)
}
if(!PyString_Check(item))
{
+ PyErr_Format(PyExc_ValueError, STRCAST("list element must be a string"));
return false;
}
seq.push_back(string(PyString_AS_STRING(item), PyString_GET_SIZE(item)));
@@ -369,6 +370,7 @@ IcePy::tupleToStringSeq(PyObject* t, Ice::StringSeq& seq)
}
if(!PyString_Check(item))
{
+ PyErr_Format(PyExc_ValueError, STRCAST("tuple element must be a string"));
return false;
}
seq.push_back(string(PyString_AS_STRING(item), PyString_GET_SIZE(item)));