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
60.5%
TypeScript
24.7%
HTML
8.3%
Markdown
2.5%
RobotFramework
1.7%
Other
2.2%