diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-12-03 21:56:59 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2012-12-03 21:57:59 +0100 |
commit | 7236370a4f0228878ecb2b7dd160f009f8ddefd1 (patch) | |
tree | f5b25d6c8731220858ff6489c9ccb6ad04e6564a | |
parent | 4dead7b1e54d3a0441a1eb6a7c067e3c8a9d9f5b (diff) |
pywizards: handle exception
Change-Id: Ia53cf4e2ab8f2e2905b1dc24ac7d6b17e9330154
-rw-r--r-- | wizards/com/sun/star/wizards/text/TextFieldHandler.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py index ce00db82a708..9af08be23f8d 100644 --- a/wizards/com/sun/star/wizards/text/TextFieldHandler.py +++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.py @@ -102,9 +102,12 @@ class TextFieldHandler(object): TextFieldHandler.dictTextFields[_FieldName] except KeyError: return None - if hasattr(DependentTextFields, "TextFieldMaster"): - DependentTextFields.TextFieldMaster.Content = _FieldContent - self.refreshTextFields() + try: + if hasattr(DependentTextFields, "TextFieldMaster"): + DependentTextFields.TextFieldMaster.Content = _FieldContent + self.refreshTextFields() + except UnknownPropertyException: + pass def updateDocInfoFields(self): try: |