File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
airbyte_cdk/sources/streams/http Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -522,11 +522,18 @@ def send_request(
522
522
523
523
524
524
class SkipFailureSQLiteDict (requests_cache .backends .sqlite .SQLiteDict ):
525
+ def __getitem__ (self , key ): # type: ignore # lib is not typed
526
+ try :
527
+ return super ().__getitem__ (key ) # type: ignore # lib is not typed
528
+ except Exception as exception :
529
+ logger .warning (f"Error while retrieving item from cache: { exception } " )
530
+
525
531
def _write (self , key : str , value : str ) -> None :
526
532
try :
527
533
super ()._write (key , value ) # type: ignore # lib is not typed
528
534
except Exception as exception :
529
- logger .warning (exception )
535
+ logger .warning (f"Error while saving item to cache: { exception } " )
536
+
530
537
531
538
532
539
class SkipFailureSQLiteCache (requests_cache .backends .sqlite .SQLiteCache ):
You can’t perform that action at this time.
0 commit comments