This commit is contained in:
Miroslav Štampar 2026-06-05 11:00:44 +02:00
parent 85a71c2b49
commit 89d6b94d0d
3 changed files with 4 additions and 4 deletions

View file

@ -384,7 +384,7 @@ def main():
logger.critical(errMsg)
raise SystemExit
elif "AttributeError:" in excMsg and re.search(r"3\.11\.\d+a", sys.version):
elif any(_ in excMsg for _ in ("AttributeError:", "TypeError:")) and re.search(r"3\.11\.\d+a", sys.version):
errMsg = "there is a known issue when sqlmap is run with ALPHA versions of Python 3.11. "
errMsg += "Please download a stable Python version"
logger.critical(errMsg)