Skip to content

Commit 70a4aab

Browse files
author
frizzby
committed
Update error handler function according to latest changes in python-client.
1 parent a765e43 commit 70a4aab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pytest_reportportal/service.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import logging
2+
import traceback
23
from time import time
4+
35
from six import with_metaclass
6+
47
from reportportal_client import ReportPortalServiceAsync
58

69

7-
def async_error_handler(exception):
8-
raise exception
10+
def async_error_handler(exc_info):
11+
exc, msg, tb = exc_info
12+
traceback.print_exception(exc, msg, tb)
913

1014

1115
def timestamp():
@@ -49,7 +53,7 @@ def terminate_service(self):
4953
self.RP.terminate()
5054

5155
def start_launch(
52-
self, launch_name=None, mode=None, tags=None, launch=None):
56+
self, launch_name, mode=None, tags=None):
5357
# In next versions launch object(suite, testcase)
5458
# could be set as parameter
5559
sl_pt = {

0 commit comments

Comments
 (0)