Skip to content

Commit 2f53e37

Browse files
committed
Fix keyerror case
1 parent 3fdbfa3 commit 2f53e37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

airbyte_cdk/sources/streams/http/http_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,8 @@ def __getitem__(self, key): # type: ignore # lib is not typed
528528
except Exception as exception:
529529
if not isinstance(exception, KeyError):
530530
logger.warning(f"Error while retrieving item from cache: {exception}")
531+
else:
532+
raise exception
531533

532534
def _write(self, key: str, value: str) -> None:
533535
try:

0 commit comments

Comments
 (0)