diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-11-28 22:42:40 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2012-11-28 22:45:38 +0100 |
commit | 9324268b51383a5957818f810c83a770258b94ce (patch) | |
tree | 32404887a12f1637c054ac0905edd1fdd239a1f5 /wizards | |
parent | acea3cd3aaa511718bdc60320753f38d28cbdf8f (diff) |
pywizards: make sure it has the attribute
Change-Id: I247fba15396a9c58eae0967099949abf17330a91
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/text/TextFieldHandler.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py index b4a3eed74693..ce00db82a708 100644 --- a/wizards/com/sun/star/wizards/text/TextFieldHandler.py +++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.py @@ -98,16 +98,13 @@ class TextFieldHandler(object): def changeUserFieldContent(self, _FieldName, _FieldContent): try: - try: - DependentTextFields = \ - TextFieldHandler.dictTextFields[_FieldName] - except KeyError: - return None - if DependentTextFields is not None: - DependentTextFields.TextFieldMaster.Content = _FieldContent - self.refreshTextFields() - except Exception: - traceback.print_exc() + DependentTextFields = \ + TextFieldHandler.dictTextFields[_FieldName] + except KeyError: + return None + if hasattr(DependentTextFields, "TextFieldMaster"): + DependentTextFields.TextFieldMaster.Content = _FieldContent + self.refreshTextFields() def updateDocInfoFields(self): try: |