From cc18d924d145abab9c503dad68aec3e1afe78786 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Sun, 16 Dec 2012 18:54:41 +0100 Subject: pywizards: handle UnknownPropertyException Change-Id: I922d27f584ef39d543ee2bba997680dbea06d95f --- wizards/com/sun/star/wizards/text/TextFieldHandler.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'wizards') 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() -- cgit