Skip to content

Commit

Permalink
Fix for Python 3.7 support, Launch UUID attribute for AIO clients
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 18, 2023
1 parent 413453f commit ba34994
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## [Unreleased]
### Fixed
- Python 3.7 support, by @HardNorth
- Launch UUID attribute for AIO clients, by @HardNorth

## [5.5.2]
### Fixed
Expand Down
6 changes: 3 additions & 3 deletions reportportal_client/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async def start_launch(self,

if not self._skip_analytics:
stat_coro = async_send_event('start_launch', *agent_name_version(attributes))
self.__stat_task = asyncio.create_task(stat_coro, name='Statistics update')
self.__stat_task = asyncio.create_task(stat_coro)

launch_uuid = await response.id
logger.debug(f'start_launch - ID: {launch_uuid}')
Expand Down Expand Up @@ -675,8 +675,8 @@ def __init__(
self.__client = client
else:
self.__client = Client(endpoint, project, **kwargs)
self.__launch_uuid = launch_uuid
if launch_uuid:
self.__launch_uuid = launch_uuid
self.use_own_launch = False
else:
self.use_own_launch = True
Expand Down Expand Up @@ -1040,8 +1040,8 @@ def __init__(
self.__client = Client(endpoint, project, **kwargs)
self.own_client = False

self.__launch_uuid = launch_uuid
if launch_uuid:
self.__launch_uuid = launch_uuid
self.own_launch = False
else:
self.own_launch = True
Expand Down

0 comments on commit ba34994

Please sign in to comment.