diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-29 14:59:25 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-29 16:56:57 +0200 |
commit | 129e69f005d4752bb5ec10a8c12d842037394822 (patch) | |
tree | c015fc88bb30e60315b3f11b448d49be72f96a33 /wizards/com/sun | |
parent | 4c3f65ea3b1f2e7f6d92c732f72936fecc017b29 (diff) |
testtools, wizards, xmlsecurity: fix issues found by Ruff linter
Change-Id: I03edbaa7c9a643ca7503fa0e93c2bf0de3ac4e51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171211
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'wizards/com/sun')
-rw-r--r-- | wizards/com/sun/star/wizards/common/Desktop.py | 2 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/ui/event/CommonListener.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/Desktop.py b/wizards/com/sun/star/wizards/common/Desktop.py index 9469f9f5f403..e1af6eaa3b53 100644 --- a/wizards/com/sun/star/wizards/common/Desktop.py +++ b/wizards/com/sun/star/wizards/common/Desktop.py @@ -68,7 +68,7 @@ class Desktop(object): while bElementexists: try: bElementexists = xElementContainer.hasByName(sElementName) - except: + except Exception: bElementexists = xElementContainer.hasByHierarchicalName( sElementName) if bElementexists: diff --git a/wizards/com/sun/star/wizards/ui/event/CommonListener.py b/wizards/com/sun/star/wizards/ui/event/CommonListener.py index c131195711ad..dad035ddf2c6 100644 --- a/wizards/com/sun/star/wizards/ui/event/CommonListener.py +++ b/wizards/com/sun/star/wizards/ui/event/CommonListener.py @@ -39,7 +39,7 @@ class ItemListenerProcAdapter( unohelper.Base, XItemListener ): if callable( self.oProcToCall ): try: self.oProcToCall() - except: + except Exception: self.oProcToCall(oItemEvent) def disposing(self, Event): |