Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Add exception handling back in after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Aug 12, 2022
1 parent 0809ffb commit 410e8ab
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,13 @@ def get_batch(self, query_params: Dict) -> Tuple[Optional[List], bool]:
# Get the API response
try:
response_json = self.get_response_json(query_params)
except Exception as e:
except (
RequestException,
RetriesExceeded,
JSONDecodeError,
ValueError,
TypeError,
) as e:
logger.error(f"Error getting response due to {e}")
response_json = None

Expand Down

0 comments on commit 410e8ab

Please sign in to comment.