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.pyImported CtyValidationError and changed two except CtyError blocks to catch CtyValidationError insteadparser.pyImported 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.pyparser.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.jsonLocal Claude Code permissions for reading pyvider-cty exception files