summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-09 09:43:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-09 11:15:30 +0200
commit41d4458310bfd68cf756094ba9484ac071b20db0 (patch)
treeb7e11015901d50c7a70ec034e8ea5911d1c5730a /uitest
parent7f2908b83a39bbb6fa648d6815265ad203f86ddc (diff)
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@redhat.com>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/libreoffice/connection.py5
1 files changed, 3 insertions, 2 deletions
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()