mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Minor patches
This commit is contained in:
@@ -234,8 +234,8 @@ def main():
|
||||
dataToStdout(excMsg)
|
||||
raise SystemExit
|
||||
|
||||
elif "ImportError" in excMsg:
|
||||
errMsg = "invalid runtime environment ('%s')" % excMsg.split("ImportError: ")[-1].strip()
|
||||
elif any(_ in excMsg for _ in ("ImportError", "Can't find file for module")):
|
||||
errMsg = "invalid runtime environment ('%s')" % excMsg.split("Error: ")[-1].strip()
|
||||
logger.critical(errMsg)
|
||||
raise SystemExit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user