diff options
Diffstat (limited to 'pyuno/source/module/pyuno_struct.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_struct.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno_struct.cxx b/pyuno/source/module/pyuno_struct.cxx index 437b4a8f1614..be8e0b913807 100644 --- a/pyuno/source/module/pyuno_struct.cxx +++ b/pyuno/source/module/pyuno_struct.cxx @@ -368,10 +368,7 @@ PyRef PyUNOStruct_new ( { PyThreadDetach antiguard; xInvocation.set( - ssf->createInstanceWithArguments( Sequence<Any>( &targetInterface, 1 ) ), UNO_QUERY ); - OSL_ASSERT( xInvocation.is() ); - if( !xInvocation.is() ) - throw RuntimeException("XInvocation2 not implemented, cannot interact with object"); + ssf->createInstanceWithArguments( Sequence<Any>( &targetInterface, 1 ) ), css::uno::UNO_QUERY_THROW ); } if( !Py_IsInitialized() ) throw RuntimeException(); |