We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48ddb1 commit 22610a7Copy full SHA for 22610a7
searchsploit.py
@@ -69,17 +69,8 @@ def scrapeRC():
69
70
# This section is to remove database paths that do not exist
71
larray = len(files_array)
72
- for i in range(larray - 1, 0, -1):
73
- try:
74
- tempRead = open(os.path.abspath(os.path.join(path_array[i], files_array[i])),
75
- "r", encoding="utf8")
76
- tempRead.read()
77
- tempRead.close()
78
- except:
79
80
81
82
- pass
+ for i in range(larray - 1, -1, -1):
+ if not os.path.exists(os.path.abspath(os.path.join(path_array[i], files_array[i]))):
83
files_array.pop(i)
84
name_array.pop(i)
85
path_array.pop(i)
0 commit comments