Codebase refactor: Python code quality
- Catch bare exceptions with specific exceptions
- Replace print statements with specific logs levels by setting up module level logger
- Fix unclosed file handles
- Remove dead code triage TODO comments
- Remove python 2 compatibility import
- Avoid globals that are mutated at runtime - refactor into class based or dependency-injection patterns
- Reduce nested helper sprawl in main() and move to module level unless it adds value
0 条评论