Skip to content

Commit

Permalink
Fix keyerror case
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Dec 4, 2024
1 parent 3fdbfa3 commit 2f53e37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airbyte_cdk/sources/streams/http/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ def __getitem__(self, key): # type: ignore # lib is not typed
except Exception as exception:
if not isinstance(exception, KeyError):
logger.warning(f"Error while retrieving item from cache: {exception}")
else:
raise exception

def _write(self, key: str, value: str) -> None:
try:
Expand Down

0 comments on commit 2f53e37

Please sign in to comment.