diff options
-rw-r--r-- | pyuno/source/module/pyuno_adapter.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx index d239119fbfe0..02881dd763db 100644 --- a/pyuno/source/module/pyuno_adapter.cxx +++ b/pyuno/source/module/pyuno_adapter.cxx @@ -380,8 +380,7 @@ Any Adapter::getValue( const OUString & aPropertyName ) PyObject_GetAttrString( mWrappedObject.get(), (char*)TO_ASCII(aPropertyName) ), SAL_NO_ACQUIRE ); - raiseInvocationTargetExceptionWhenNeeded( runtime); - if( !pyRef.is() ) + if (!pyRef.is() || PyErr_Occurred()) { OUStringBuffer buf; buf.appendAscii( "pyuno::Adapater: Property " ).append( aPropertyName ); |