Skip to content

Commit

Permalink
Fix Pabot warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Sep 23, 2024
1 parent 3c8785c commit ce6eef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotframework_reportportal/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ce6eef4

Please sign in to comment.