Skip to content

Commit 8aa2871

Browse files
Merge pull request #196 from skyflowapi/SK-2293-retry-records-on-connection-error-in-python-sdk
SK-2293 retry on every exception
2 parents bb6c874 + 5700874 commit 8aa2871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skyflow/vault/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def insert(self, records: dict, options: InsertOptions = InsertOptions()):
7171
raise SkyflowError(SkyflowErrorCodes.SERVER_ERROR, SkyflowErrorMessages.BATCH_INSERT_FAILURE.value, result, interface=interface)
7272
log_info(InfoMessages.INSERT_DATA_SUCCESS.value, interface)
7373
return result
74-
except requests.exceptions.ConnectionError as err:
74+
except Exception as err:
7575
if attempt < max_retries:
7676
continue
7777
else:

0 commit comments

Comments
 (0)