Skip to content

Commit 16f3a2c

Browse files
committed
update acc to review
1 parent 1147216 commit 16f3a2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/apify_client/clients/resource_clients/request_queue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,6 @@ def batch_add_requests(
344344
json=list(batch.requests),
345345
)
346346

347-
response_parsed = parse_date_fields(pluck_data(response.json()))
348-
349347
# Retry if the request failed and the retry limit has not been reached.
350348
if not response.is_success and batch.num_of_retries < max_unprocessed_requests_retries:
351349
batch.num_of_retries += 1
@@ -354,6 +352,7 @@ def batch_add_requests(
354352

355353
# Otherwise, add the processed/unprocessed requests to their respective lists.
356354
else:
355+
response_parsed = parse_date_fields(pluck_data(response.json()))
357356
processed_requests.extend(response_parsed.get('processedRequests', []))
358357
unprocessed_requests.extend(response_parsed.get('unprocessedRequests', []))
359358

0 commit comments

Comments
 (0)