From 2f53e3791a0fef5bbe79735b25cac1f291e01261 Mon Sep 17 00:00:00 2001 From: maxi297 Date: Wed, 4 Dec 2024 13:46:16 -0500 Subject: [PATCH] Fix keyerror case --- airbyte_cdk/sources/streams/http/http_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airbyte_cdk/sources/streams/http/http_client.py b/airbyte_cdk/sources/streams/http/http_client.py index 8af00fc17..e2737457f 100644 --- a/airbyte_cdk/sources/streams/http/http_client.py +++ b/airbyte_cdk/sources/streams/http/http_client.py @@ -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: