Skip to content

Commit b361453

Browse files
committed
Fixed error when a directory doesnt exist
1 parent 9f8acfe commit b361453

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

searchsploit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def scrapeRC():
7676
tempRead.read()
7777
tempRead.close()
7878
except:
79+
try:
7980
tempRead.close()
81+
except:
82+
pass
8083
files_array.pop(i)
8184
name_array.pop(i)
8285
path_array.pop(i)

0 commit comments

Comments
 (0)