Skip to content

Commit

Permalink
Merge pull request #1424 from zrquan/patch-2
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
shelld3v authored Oct 23, 2024
2 parents e3cc00a + 97e6057 commit 52338ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dirsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from lib.parse.config import ConfigParser

if sys.version_info < (3, 9):
sys.stderr.write("Sorry, dirsearch requires Python 3.8 or higher\n")
sys.stderr.write("Sorry, dirsearch requires Python 3.9 or higher\n")
sys.exit(1)

# silence pkg_resources deprecation warnings
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def compare_to(self, content):
for pattern in self._static_patterns:
try:
i = splitted_content.index(pattern, i + 1)
except IndexError:
except ValueError:
return False

# The number of static patterns is not big enough to say it's a reliable method
Expand Down

0 comments on commit 52338ef

Please sign in to comment.