Skip to content

Commit 4438f09

Browse files
committed
Fixes #228
1 parent dc7b704 commit 4438f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reportportal_client/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ def _log(self, batch: Optional[List[RPRequestLog]]) -> Optional[Tuple[str, ...]]
736736
url = uri_join(self.base_url_v2, 'log')
737737
response = HttpRequest(self.session.post, url, files=RPLogBatch(batch).payload,
738738
verify_ssl=self.verify_ssl, http_timeout=self.http_timeout).make()
739-
return response.messages
739+
if response:
740+
return response.messages
740741

741742
def log(self,
742743
time: str,

0 commit comments

Comments
 (0)