19bb94ee471a7eef9c64b62c45ba156a3aa5e5e3
In the Docker image, the app source is copied to /app/app/ (not backend/app/), so parents[2] resolved to '/' instead of /app. This left the fail2ban package absent from sys.path, causing every pickle.loads() call on socket responses to raise: ModuleNotFoundError: No module named 'fail2ban' Replace the hardcoded parents[2] with a walk-up search that iterates over all ancestors until it finds a fail2ban-master/ sibling directory. Works correctly in both local dev and Docker without environment-specific path magic.
Description
No description provided
Languages
Python
61.2%
TypeScript
24.9%
HTML
8.4%
Markdown
2.5%
Roff
0.9%
Other
2%