Commit a56ae7f
committed
fix: narrow exception handling to json.JSONDecodeError with rich error details
Address PR #1892 review feedback from @aaunario-keeper:
- All json.loads sites: catch only json.JSONDecodeError (drop dead
ValueError/TypeError/KeyError catches)
- Use e.msg, e.lineno, e.colno for actionable log messages
- import_schedule_field: split into separate json.JSONDecodeError and
(ValueError, KeyError) handlers to distinguish parse vs structural errors1 parent 0033e99 commit a56ae7f
1 file changed
+41
-37
lines changed
0 commit comments