summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2013-11-24 14:08:16 +0100
committerXisco Fauli <anistenis@gmail.com>2013-11-24 18:17:18 +0100
commit59e09804346724063ea39a11b20d65e79ce16c95 (patch)
tree674ba6f2266421e1c64fdc19ada44be584cf4b60 /wizards
parentf5292779291b5938aec5d9a65f4c603b2b88eb23 (diff)
pyletter: Some pyflakes love
Change-Id: I60d921ea27e995ffc4e18995993d961dc91543b3
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
index 1ff5f1cb5da4..6560e52726d0 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
@@ -20,7 +20,6 @@ import os.path
from .LetterWizardDialog import LetterWizardDialog, uno, HelpIds, HID
from .LetterDocument import LetterDocument, BusinessPaperObject
from .CGLetterWizard import CGLetterWizard
-from ..common.NoValidPathException import NoValidPathException
from ..common.FileAccess import FileAccess
from ..common.Configuration import Configuration
from ..common.SystemDialog import SystemDialog
@@ -34,7 +33,6 @@ from ..text.TextFieldHandler import TextFieldHandler
from ..document.OfficeDocument import OfficeDocument
from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO
-from com.sun.star.uno import RuntimeException
from com.sun.star.util import CloseVetoException
from com.sun.star.view.DocumentZoomType import OPTIMAL
from com.sun.star.document.UpdateDocMode import FULL_UPDATE
@@ -169,7 +167,6 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.switchToStep(self.getCurrentStep(), self.nMaxStep)
endWizard = True
try:
- fileAccess = FileAccess(self.xMSF)
self.sPath = self.myPathSelection.getSelectedPath()
if not self.sPath or not os.path.exists(self.sPath):
self.myPathSelection.triggerPathPicker()
@@ -493,9 +490,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.myLetterDoc.xTextDocument, " ", iFrameWidth, iReceiverHeight,
iFrameX, iFrameY - iReceiverHeight)
self.setPossibleAddressReceiver(False)
- except NoSuchElementException:
- traceback.print_exc()
- except WrappedTargetException:
+ except Exception:
traceback.print_exc()
if self.chkPaperCompanyAddress.State != 0: