Skip to content

Commit 2f16796

Browse files
author
Dzmitry Humianiuk
authored
Merge pull request #41 from rplevka/env_race_condition_2
fix the circular dependency regression on importing POST_LOGBATCH_RETRY_COUNT
2 parents 6bdc900 + af1686e commit 2f16796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reportportal_client/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import logging
2121

2222
from .errors import ResponseError, EntryCreatedError, OperationCompletionError
23-
from reportportal_client import POST_LOGBATCH_RETRY_COUNT
2423

2524
logger = logging.getLogger(__name__)
2625
logger.addHandler(logging.NullHandler())
@@ -292,6 +291,7 @@ def log_batch(self, log_data):
292291
)
293292
)]
294293
files.extend(attachments)
294+
from reportportal_client import POST_LOGBATCH_RETRY_COUNT
295295
for i in range(POST_LOGBATCH_RETRY_COUNT):
296296
try:
297297
r = self.session.post(

0 commit comments

Comments
 (0)