[Libreoffice-commits] core.git: uitest/libreoffice

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 9 09:16:06 UTC 2020


 uitest/libreoffice/connection.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 41d4458310bfd68cf756094ba9484ac071b20db0
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jun 9 09:43:45 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Jun 9 11:15:30 2020 +0200

    Print more information about the swallowed exceptions
    
    Change-Id: I126413f9eb5c5698e4500c4fc5e04f31a9c574fd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95895
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/uitest/libreoffice/connection.py b/uitest/libreoffice/connection.py
index 68330b47d6cf..2b0e9c227479 100644
--- a/uitest/libreoffice/connection.py
+++ b/uitest/libreoffice/connection.py
@@ -7,6 +7,7 @@
 
 import subprocess
 import time
+import traceback
 import uuid
 import os
 
@@ -126,10 +127,10 @@ class OfficeConnection:
                     xDesktop.terminate()
                     print("...done")
                 except pyuno.getClass("com.sun.star.beans.UnknownPropertyException"):
-                    print("caught UnknownPropertyException while TearDown")
+                    print("caught while TearDown:\n", traceback.format_exc())
                     pass  # ignore, also means disposed
                 except pyuno.getClass("com.sun.star.lang.DisposedException"):
-                    print("caught DisposedException while TearDown")
+                    print("caught while TearDown:\n", traceback.format_exc())
                     pass  # ignore
             else:
                 self.soffice.terminate()


More information about the Libreoffice-commits mailing list