diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-10-18 14:23:58 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-10-18 14:23:58 -0700 |
commit | 1c2e1376f5d875483a8561b9654935c83b497897 (patch) | |
tree | 9554d2698a31eba783ef656dd1cbf66a47ef2c8c /py/modules/IcePy/Proxy.cpp | |
parent | makedist fixes (diff) | |
download | ice-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.cpp | 6 |
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); |