diff --git a/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConn.zip b/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConn.zip index 9b09463e581..ab3396306ac 100644 Binary files a/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConn.zip and b/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConn.zip differ diff --git a/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConnector/__init__.py b/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConnector/__init__.py index 99b9ea86dc8..8cbaf8dbee4 100644 --- a/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConnector/__init__.py +++ b/Solutions/ImpervaCloudWAF/Data Connectors/ImpervaWAFCloudSentinelConnector/__init__.py @@ -83,8 +83,12 @@ def last_file_point(self): past_file = state.get() if past_file is not None: logging.info("The last file point is: {}".format(past_file)) - index = self.files_array.index(past_file) - files_arr = self.files_array[index + 1:] + try: + index = self.files_array.index(past_file) + files_arr = self.files_array[index + 1:] + except Exception as err: + logging.info("Last point file detection error: {}. So Processing all the files from index file".format(err)) + files_arr = self.files_array else: files_arr = self.files_array logging.info("There are {} files in the list index file.".format(len(files_arr)))