summaryrefslogtreecommitdiff
path: root/wizards/com/sun
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-05-06 08:33:55 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-05-06 23:50:40 +0200
commit1a64567a977a756771ad85783067fe056c7a9da4 (patch)
tree6e24c887e8a7fa447b0da9c4b4e4acd96d0b7e18 /wizards/com/sun
parentbe29bd29864e450b0a99898d560ba71562cf06da (diff)
pyflakes3: replace IllegalArgumentException by Exception (wizards)
IllegalArgumentException doesn't exist Change-Id: Ifea6f56d19fb58136ac5d992107ab7179ac943b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93524 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'wizards/com/sun')
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaDocument.py2
-rw-r--r--wizards/com/sun/star/wizards/agenda/TopicsControl.py2
-rw-r--r--wizards/com/sun/star/wizards/document/OfficeDocument.py2
-rw-r--r--wizards/com/sun/star/wizards/text/TextSectionHandler.py2
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaDocument.py b/wizards/com/sun/star/wizards/agenda/AgendaDocument.py
index 567a1f1ae434..5989158fcbd6 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaDocument.py
+++ b/wizards/com/sun/star/wizards/agenda/AgendaDocument.py
@@ -373,7 +373,7 @@ class AgendaDocument(TextDocument):
self.teLocation.placeHolderText = self.agenda.cp_Location
self.teLocation.write(self.trLocation)
else:
- raise IllegalArgumentException ("No such title control...")
+ raise Exception("No such title control...")
except Exception:
traceback.print_exc()
diff --git a/wizards/com/sun/star/wizards/agenda/TopicsControl.py b/wizards/com/sun/star/wizards/agenda/TopicsControl.py
index 36cfbffa41e1..6e269f6bf242 100644
--- a/wizards/com/sun/star/wizards/agenda/TopicsControl.py
+++ b/wizards/com/sun/star/wizards/agenda/TopicsControl.py
@@ -643,7 +643,7 @@ class TopicsControl(ControlScroller):
elif tmp_switch_var1 == 3:
return cr.timebox
else:
- raise IllegalArgumentException ("No such column");
+ raise Exception("No such column");
'''getControl
returns a control out of the given row, which is
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py
index aa6c059b6e24..cb7c1cebeb33 100644
--- a/wizards/com/sun/star/wizards/document/OfficeDocument.py
+++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py
@@ -117,7 +117,7 @@ class OfficeDocument(object):
xPeer = None
try:
xPeer = xToolkit.createWindow(aDescriptor)
- except IllegalArgumentException:
+ except Exception:
traceback.print_exc()
#define some further properties of the frame window
diff --git a/wizards/com/sun/star/wizards/text/TextSectionHandler.py b/wizards/com/sun/star/wizards/text/TextSectionHandler.py
index bc63e1a9ae1c..e8d649a31462 100644
--- a/wizards/com/sun/star/wizards/text/TextSectionHandler.py
+++ b/wizards/com/sun/star/wizards/text/TextSectionHandler.py
@@ -96,7 +96,7 @@ class TextSectionHandler(object):
xSecondTextCursor = self.xText.createTextCursor()
xSecondTextCursor.gotoEnd(False)
insertTextSection(GroupName, TemplateName, xSecondTextCursor)
- except IllegalArgumentException:
+ except Exception:
traceback.print_exc()
def insertTextSection(self, sectionName, templateName, position):
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.py b/wizards/com/sun/star/wizards/ui/UnoDialog.py
index ef227235677b..37376f1eec45 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog.py
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog.py
@@ -213,7 +213,7 @@ class UnoDialog(object):
nUIColor = 0
try:
nUIColor = self.xVclWindowPeer.getProperty("DisplayBackgroundColor")
- except IllegalArgumentException:
+ except Exception:
traceback.print_exc()
return False