summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Util.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-11-02 18:23:00 +0000
committerMark Spruiell <mes@zeroc.com>2004-11-02 18:23:00 +0000
commitd46ec68d8739ef7650d6570ec342e39108b6e4a9 (patch)
tree837b21cae0840df959153db40667ba54a5b350b3 /py/modules/IcePy/Util.cpp
parentmore glacier2 fixes (diff)
downloadice-d46ec68d8739ef7650d6570ec342e39108b6e4a9.tar.bz2
ice-d46ec68d8739ef7650d6570ec342e39108b6e4a9.tar.xz
ice-d46ec68d8739ef7650d6570ec342e39108b6e4a9.zip
more exception member fixes
Diffstat (limited to 'py/modules/IcePy/Util.cpp')
-rw-r--r--py/modules/IcePy/Util.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/py/modules/IcePy/Util.cpp b/py/modules/IcePy/Util.cpp
index 70d33cb8f2b..f8411ff6bd0 100644
--- a/py/modules/IcePy/Util.cpp
+++ b/py/modules/IcePy/Util.cpp
@@ -339,8 +339,6 @@ convertLocalException(const Ice::LocalException& ex, PyObject* p)
catch(const Ice::UnsupportedProtocolException& e)
{
IcePy::PyObjectHandle m;
- m = PyString_FromString(const_cast<char*>(e.reason.c_str()));
- PyObject_SetAttrString(p, "reason", m.get());
m = PyInt_FromLong(e.badMajor);
PyObject_SetAttrString(p, "badMajor", m.get());
m = PyInt_FromLong(e.badMinor);
@@ -353,8 +351,6 @@ convertLocalException(const Ice::LocalException& ex, PyObject* p)
catch(const Ice::UnsupportedEncodingException& e)
{
IcePy::PyObjectHandle m;
- m = PyString_FromString(const_cast<char*>(e.reason.c_str()));
- PyObject_SetAttrString(p, "reason", m.get());
m = PyInt_FromLong(e.badMajor);
PyObject_SetAttrString(p, "badMajor", m.get());
m = PyInt_FromLong(e.badMinor);
@@ -372,7 +368,7 @@ convertLocalException(const Ice::LocalException& ex, PyObject* p)
m = PyString_FromString(const_cast<char*>(e.type.c_str()));
PyObject_SetAttrString(p, "type", m.get());
}
- catch(const Ice::ProtocolException& e)
+ catch(const Ice::MarshalException& e)
{
IcePy::PyObjectHandle m = PyString_FromString(const_cast<char*>(e.reason.c_str()));
PyObject_SetAttrString(p, "reason", m.get());