cli: show connection exception

For anonymous calls (whose use ensure_connection) is now shown also
original exception if --debug is specified.

Fixes: https://pagure.io/koji/issue/2592
This commit is contained in:
Tomas Kopecek 2021-02-17 13:54:24 +01:00
parent cf1c2dad0b
commit 29a34f31a5
7 changed files with 49 additions and 44 deletions

View file

@ -44,4 +44,4 @@ default 3 1 0 1 6 22%
test 2 2 1 1 6 28%
"""
self.assertMultiLineEqual(actual, expected)
ensure_connection_mock.assert_called_once_with(self.session)
ensure_connection_mock.assert_called_once_with(self.session, self.options)