From 6a8f7a07bf169367898f82fe211f2d2d85bb72de Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Tue, 25 Jan 2022 11:27:37 +0100 Subject: [PATCH] e2e: skip AttributeError Signed-off-by: Churikova Tetiana --- test/appium/support/testrail_report.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/appium/support/testrail_report.py b/test/appium/support/testrail_report.py index 4948831239..01beefa837 100644 --- a/test/appium/support/testrail_report.py +++ b/test/appium/support/testrail_report.py @@ -144,9 +144,12 @@ class TestrailReport(BaseTestReport): except KeyError: result_id = '' if last_testrun.error: - for geth in test.geth_paths.keys(): - self.add_attachment(method='add_attachment_to_result/%s' % str(result_id), - path=test.geth_paths[geth]) + try: + for geth in test.geth_paths.keys(): + self.add_attachment(method='add_attachment_to_result/%s' % str(result_id), + path=test.geth_paths[geth]) + except AttributeError: + pass self.change_test_run_description() def change_test_run_description(self):