import sys
sys.path.insert(0, 'scripts')
from audit_exception_handling import audit_file
from pathlib import Path
r = audit_file(Path('src/app_controller.py'))
for f in r.findings:
    if f.line in (242, 256, 5064, 5093):
        print(f'L{f.line}: category={f.category}')
        print(f'  snippet: {f.snippet[:120].strip()}')
