pyvider-hcl 2025-09-25
Narrowed exception handling to CtyValidationError
3 files · 14+ · 5-

More specific exception catching in factories and parser

2 files changed
  • factories.py Imported CtyValidationError and changed two except CtyError blocks to catch CtyValidationError instead
  • parser.py Imported CtyValidationError and changed schema validation to catch both CtySchemaError and CtyValidationError
  • Imported CtyValidationError from pyvider.cty.exceptions in both factories.py and parser.py harden internal
    2 files
    • factories.py
    • parser.py
  • In factories.py, changed two except CtyError blocks (for variable default validation and resource attribute validation) to catch CtyValidationError instead harden behavioral
    1 file
    • factories.py
  • In parser.py, changed schema validation to catch both CtySchemaError and CtyValidationError, distinguishing between schema definition errors and value validation errors harden behavioral
    1 file
    • parser.py

Added Claude Code settings

1 file changed
  • settings.local.json Local Claude Code permissions for reading pyvider-cty exception files
  • Added .claude/settings.local.json with read permissions for pyvider-cty exceptions baseline internal
    1 file
    • settings.local.json