Skip to content

Commit

Permalink
Catch encord request error (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-encord authored Nov 30, 2023
1 parent d39687d commit 96b231c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def add_private_data_to_dataset_get_result(
print("Processed all files, dataset data linking and task creation is performed, please wait")

failed_requests_count = 0
except requests.exceptions.RequestException:
except (requests.exceptions.RequestException, encord.exceptions.RequestException):
failed_requests_count += 1

if failed_requests_count >= LONG_POLLING_RESPONSE_RETRY_N:
Expand Down

0 comments on commit 96b231c

Please sign in to comment.