Skip to content

Commit

Permalink
Merge pull request #1366 from jxdv/use-stderr
Browse files Browse the repository at this point in the history
use stderr instead
  • Loading branch information
maurosoria authored May 11, 2024
2 parents 2d21d63 + e9944d2 commit efe0fe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dirsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from lib.parse.config import ConfigParser

if sys.version_info < (3, 7):
sys.stdout.write("Sorry, dirsearch requires Python 3.7 or higher\n")
sys.stderr.write("Sorry, dirsearch requires Python 3.7 or higher\n")
sys.exit(1)


Expand All @@ -50,8 +50,8 @@ def main():
try:
install_dependencies()
except FailedDependenciesInstallation:
print("Failed to install dirsearch dependencies, try doing it manually.")
exit(1)
sys.stderr.write("Failed to install dirsearch dependencies, try doing it manually.\n")
sys.exit(1)
else:
# Do not check for dependencies in the future
config.set("options", "check-dependencies", "False")
Expand Down

0 comments on commit efe0fe2

Please sign in to comment.