summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Proxy.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-10-18 14:23:58 -0700
committerMark Spruiell <mes@zeroc.com>2012-10-18 14:23:58 -0700
commit1c2e1376f5d875483a8561b9654935c83b497897 (patch)
tree9554d2698a31eba783ef656dd1cbf66a47ef2c8c /py/modules/IcePy/Proxy.cpp
parentmakedist fixes (diff)
downloadice-1c2e1376f5d875483a8561b9654935c83b497897.tar.bz2
ice-1c2e1376f5d875483a8561b9654935c83b497897.tar.xz
ice-1c2e1376f5d875483a8561b9654935c83b497897.zip
ICE-4862 - checkedCast raises FacetNotExistException
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r--py/modules/IcePy/Proxy.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp
index f71f8069717..da2f6529526 100644
--- a/py/modules/IcePy/Proxy.cpp
+++ b/py/modules/IcePy/Proxy.cpp
@@ -1924,7 +1924,7 @@ checkedCastImpl(ProxyObject* p, const string& id, PyObject* facet, PyObject* ctx
target = (*p->proxy)->ice_facet(facetStr);
}
- bool b;
+ bool b = false;
try
{
AllowThreads allowThreads; // Release Python's global interpreter lock during remote invocations.
@@ -1942,6 +1942,10 @@ checkedCastImpl(ProxyObject* p, const string& id, PyObject* facet, PyObject* ctx
b = target->ice_isA(id, c);
}
}
+ catch(const Ice::FacetNotExistException&)
+ {
+ // Ignore.
+ }
catch(const Ice::Exception& ex)
{
setPythonException(ex);