File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/apify_client/clients/resource_clients Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -344,8 +344,6 @@ def batch_add_requests(
344
344
json = list (batch .requests ),
345
345
)
346
346
347
- response_parsed = parse_date_fields (pluck_data (response .json ()))
348
-
349
347
# Retry if the request failed and the retry limit has not been reached.
350
348
if not response .is_success and batch .num_of_retries < max_unprocessed_requests_retries :
351
349
batch .num_of_retries += 1
@@ -354,6 +352,7 @@ def batch_add_requests(
354
352
355
353
# Otherwise, add the processed/unprocessed requests to their respective lists.
356
354
else :
355
+ response_parsed = parse_date_fields (pluck_data (response .json ()))
357
356
processed_requests .extend (response_parsed .get ('processedRequests' , []))
358
357
unprocessed_requests .extend (response_parsed .get ('unprocessedRequests' , []))
359
358
You can’t perform that action at this time.
0 commit comments