summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-12-16 18:54:41 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-12-17 08:36:36 +0000
commit41bff3e75902ba032b0642385600d66b7beb7533 (patch)
tree793ca68fedbc665aa9e0af1c9cc4f04d5427583c /wizards
parent6d4a55bf38a1c470c49f904dbbddf94eb2f6154c (diff)
pywizards: handle UnknownPropertyException
Change-Id: I922d27f584ef39d543ee2bba997680dbea06d95f Reviewed-on: https://gerrit.libreoffice.org/1355 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/text/TextFieldHandler.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py
index 9af08be23f8d..379abb1ff8f2 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.py
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.py
@@ -149,7 +149,6 @@ class TextFieldHandler(object):
if i.supportsService(
"com.sun.star.text.TextField.DateTime"):
i.IsFixed = _bSetFixed
-
except Exception:
traceback.print_exc()
@@ -158,8 +157,11 @@ class TextFieldHandler(object):
try:
xDependentTextFields = TextFieldHandler.dictTextFields.values()
for i in xDependentTextFields:
- if not i.TextFieldMaster.Content:
- i.dispose()
+ try:
+ if not i.TextFieldMaster.Content:
+ i.dispose()
+ except UnknownPropertyException:
+ pass
except Exception:
traceback.print_exc()