Skip to content

Commit

Permalink
Merge pull request #10184 from Azure/v-mchatla/Imperva-FileNotFoundIs…
Browse files Browse the repository at this point in the history
…sueFix

Imperva WAF Cloud: Fix for File Not found issue
  • Loading branch information
v-sabiraj authored Mar 20, 2024
2 parents 0541736 + c5cdd5b commit 9142d13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 9142d13

Please sign in to comment.