Skip to content

Commit 76947fd

Browse files
committed
Fix tests
1 parent f52bc3b commit 76947fd

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

reportportal_client/aio/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -979,9 +979,6 @@ async def log(
979979
:param item_id: UUID of the ReportPortal Item the message belongs to.
980980
:return: Response message Tuple if Log message batch was sent or None.
981981
"""
982-
if not item_id:
983-
logger.warning("Attempt to log to non-existent item")
984-
return None
985982
rp_file = RPFile(**attachment) if attachment else None
986983
rp_log = AsyncRPRequestLog(self.__launch_uuid, time, rp_file, item_id, level, message)
987984
return await self.__client.log_batch(await self._log_batcher.append_async(rp_log))

reportportal_client/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,9 +843,6 @@ def log(
843843
:param item_id: UUID of the ReportPortal Item the message belongs to.
844844
:return: Response message Tuple if Log message batch was sent or None.
845845
"""
846-
if not item_id:
847-
logger.warning("Attempt to log to non-existent item")
848-
return None
849846
rp_file = RPFile(**attachment) if attachment else None
850847
rp_log = RPRequestLog(self.__launch_uuid, time, rp_file, item_id, level, message)
851848
return self._log(self._log_batcher.append(rp_log))

0 commit comments

Comments
 (0)