summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/text/TextFieldHandler.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-12-16 18:54:41 +0100
committerXisco Fauli <anistenis@gmail.com>2012-12-16 20:06:45 +0100
commitcc18d924d145abab9c503dad68aec3e1afe78786 (patch)
treef221188f729b066caf6c100f4c5d9af5538900f7 /wizards/com/sun/star/wizards/text/TextFieldHandler.py
parenta18c4b0f38eddc3c106091a3cc2f17655eedf286 (diff)
pywizards: handle UnknownPropertyException
Change-Id: I922d27f584ef39d543ee2bba997680dbea06d95f
Diffstat (limited to 'wizards/com/sun/star/wizards/text/TextFieldHandler.py')
-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()