Skip to content

Commit 3fdbfa3

Browse files
committed
Only low on exceptions that are not keyerror
1 parent 6dc1e79 commit 3fdbfa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

airbyte_cdk/sources/streams/http/http_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ def __getitem__(self, key): # type: ignore # lib is not typed
526526
try:
527527
return super().__getitem__(key) # type: ignore # lib is not typed
528528
except Exception as exception:
529-
logger.warning(f"Error while retrieving item from cache: {exception}")
529+
if not isinstance(exception, KeyError):
530+
logger.warning(f"Error while retrieving item from cache: {exception}")
530531

531532
def _write(self, key: str, value: str) -> None:
532533
try:

0 commit comments

Comments
 (0)