Fix all 47 bugs — hardened attack engine, UI/UX, proxy, CAPTCHA, config
This commit is contained in:
15
main.py
15
main.py
@@ -14,6 +14,10 @@ import os
|
||||
# Add project root to path
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
# bug #35: ensure data directories exist before any module tries to write them
|
||||
from config import ensure_dirs
|
||||
ensure_dirs()
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
@@ -43,6 +47,17 @@ def check_dependencies():
|
||||
except ImportError:
|
||||
missing.append("numpy")
|
||||
|
||||
# bug #27: add aiohttp and aiohttp_socks to required checks
|
||||
try:
|
||||
import aiohttp
|
||||
except ImportError:
|
||||
missing.append("aiohttp")
|
||||
|
||||
try:
|
||||
import aiohttp_socks
|
||||
except ImportError:
|
||||
missing.append("aiohttp-socks")
|
||||
|
||||
# GPU libraries are optional
|
||||
try:
|
||||
import cupy
|
||||
|
||||
Reference in New Issue
Block a user