summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/document
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-05-07 23:16:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-08 11:01:13 +0200
commit62f77e94702657aa25e247da71dab012e280679e (patch)
tree7affdb22aa015e910e8861078a35c67ad7ec0edc /wizards/com/sun/star/wizards/document
parent439ea553bef5a7e29ed20764ede1ae987e839bca (diff)
pyflakes3: fix some reports on wizards
Change-Id: I0fef17ccc8f110d1d8bf629737807f1bcc618b76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93685 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'wizards/com/sun/star/wizards/document')
-rw-r--r--wizards/com/sun/star/wizards/document/OfficeDocument.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py
index cb7c1cebeb33..1483f902da17 100644
--- a/wizards/com/sun/star/wizards/document/OfficeDocument.py
+++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py
@@ -19,6 +19,7 @@ import uno
import traceback
from unohelper import systemPathToFileUrl, absolutize
from ..common.Desktop import Desktop
+from ..common.SystemDialog import SystemDialog
from com.sun.star.awt import WindowDescriptor
from com.sun.star.awt import Rectangle
@@ -70,7 +71,7 @@ class OfficeDocument(object):
Desktop.dispatchURL(xMSF, ".uno:CloseDoc", xFrame)
- except PropertyVetoException:
+ except Exception:
traceback.print_exc()
@classmethod
@@ -191,7 +192,7 @@ class OfficeDocument(object):
try:
xComponent.close(True)
bState = True
- except com.sun.star.util.CloseVetoException:
+ except Exception:
print ("could not close doc")
bState = False