diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-21 10:56:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-21 13:59:34 +0100 |
commit | de61e7302d05a8626aed39a2749a05fd4d376f48 (patch) | |
tree | 06c4e50280d5ceabf7df19daffaac13f8780b77d /pyuno | |
parent | 8923103eeedc79ee8e4384ea4a1df57d76a0d5d4 (diff) |
coverity#706600 Uncaught exception
Change-Id: I93868e6acc8e245f15ece38e00390dfc3bd9ee8c
Diffstat (limited to 'pyuno')
-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 ); |