tests: uitests: Make find() exception output nicer

Overwrite the internal exception, which is not interesting

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-26 10:08:53 -05:00
parent f073ad6fb6
commit 18358d5096
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ class VMMDogtailNode(dogtail.tree.Node):
except dogtail.tree.SearchError:
raise dogtail.tree.SearchError("Didn't find widget with name='%s' "
"roleName='%s' labeller_text='%s'" %
(name, roleName, labeller_text))
(name, roleName, labeller_text)) from None
# Wait for independent windows to become active in the window manager
# before we return them. This ensures the window is actually onscreen