Skip to content

Commit a56ae7f

Browse files
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 errors
1 parent 0033e99 commit a56ae7f

File tree

1 file changed

+41
-37
lines changed
  • keepercommander/commands/pam_import

1 file changed

+41
-37
lines changed

0 commit comments

Comments
 (0)