Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed May 22, 2024
1 parent 25fa4ab commit 862edfc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions commix.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@
For more see the file 'readme/COPYING' for copying permission.
"""

import sys

# Dummy check for missing module(s).
try:
__import__("src.utils.version")
from src.utils import version
version.python_version()

except ImportError:
err_msg = "Wrong installation detected (missing modules). "
err_msg = "Visit 'https://github.com/commixproject/commix/' for further details. \n"
print(settings.print_critical_msg(err_msg))
raise SystemExit()
except ImportError as ex:
err_msg = "Wrong installation detected (i.e \"" + str(ex) + "\"). "
err_msg += "Visit 'https://github.com/commixproject/commix/' for further details."
sys.exit(err_msg)

# Main
def main():
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def sys_argv_errors():
DESCRIPTION = "The command injection exploiter"
AUTHOR = "Anastasios Stasinopoulos"
VERSION_NUM = "4.0"
REVISION = "52"
REVISION = "53"
STABLE_RELEASE = False
VERSION = "v"
if STABLE_RELEASE:
Expand Down
4 changes: 2 additions & 2 deletions src/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def python_version():
if PYTHON_VERSION.split(".")[0] != "3":
warn_msg = "Deprecated Python version detected: "
warn_msg += PYTHON_VERSION + ". "
warn_msg += "You are advised to use Python version 3."
print("\n" + settings.print_bold_warning_msg(warn_msg))
warn_msg += "You are advised to re-run with Python 3."
print(settings.print_bold_warning_msg(warn_msg))
#raise SystemExit()

0 comments on commit 862edfc

Please sign in to comment.