From ce6eef469fde63a1342c3cfbe167ca0c20061cf4 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Mon, 23 Sep 2024 15:40:24 +0300 Subject: [PATCH] Fix Pabot warning --- robotframework_reportportal/listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robotframework_reportportal/listener.py b/robotframework_reportportal/listener.py index 85e7f2c..3cdc8ea 100644 --- a/robotframework_reportportal/listener.py +++ b/robotframework_reportportal/listener.py @@ -195,7 +195,7 @@ def start_launch(self, attributes: Dict[str, Any], ts: Optional[Any] = None) -> """ launch = Launch(self.variables.launch_name, attributes, self.variables.launch_attributes) launch.doc = self.variables.launch_doc or launch.doc - if self.variables.pabot_used: + if self.variables.pabot_used and not self._variables.launch_id: warn(PABOT_WITHOUT_LAUNCH_ID_MSG, stacklevel=2) logger.debug(f'ReportPortal - Start Launch: {launch.robot_attributes}') self.service.start_launch(