Skip to content

Commit 84cd886

Browse files
committed
revert service.py modification
1 parent 4c0b284 commit 84cd886

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reportportal_client/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __init__(self,
182182
log_batch_size=20,
183183
is_skipped_an_issue=True,
184184
verify_ssl=True,
185-
retries=0,
185+
retries=None,
186186
max_pool_size=50,
187187
http_timeout=(10, 10),
188188
**kwargs):
@@ -214,7 +214,7 @@ def __init__(self,
214214
self.http_timeout = http_timeout
215215

216216
self.session = requests.Session()
217-
if retries or max_pool_size:
217+
if retries:
218218
self.session.mount('https://', HTTPAdapter(
219219
max_retries=retries, pool_maxsize=max_pool_size))
220220
self.session.mount('http://', HTTPAdapter(
@@ -590,4 +590,4 @@ def _log_batch(self, log_data, force=False):
590590
"Report Portal Batch Log request failed after %d attempts",
591591
POST_LOGBATCH_RETRY_COUNT,
592592
exc_info=exceptions[-1]
593-
)
593+
)

0 commit comments

Comments
 (0)