wizards/com/sun/star/wizards/text/TextFieldHandler.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit 41bff3e75902ba032b0642385600d66b7beb7533 Author: Xisco Fauli <aniste...@gmail.com> Date: Sun Dec 16 18:54:41 2012 +0100 pywizards: handle UnknownPropertyException Change-Id: I922d27f584ef39d543ee2bba997680dbea06d95f Reviewed-on: https://gerrit.libreoffice.org/1355 Reviewed-by: Miklos Vajna <vmik...@suse.cz> Tested-by: Miklos Vajna <vmik...@suse.cz> diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py index 9af08be..379abb1 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() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits