PyBump
PyBump copied to clipboard
UnboundLocalError when parsing invalid YAML file
Describe the bug When pybump attempts to parse an invalid YAML file, it crashes with an UnboundLocalError instead of providing a clear error message and graceful exit. The YAMLError exception is caught and printed in src/pybump.py:127-128, but execution continues without exiting, leaving file_content undefined.
To Reproduce echo "version: 1.0.0 name: invalid bad-indent: oops" > test_invalid.yaml
pybump get --file test_invalid.yaml
Expected behavior A clear and concise description of what you expected to happen.
System information:
- OS version: Darwin 24.5.0
- Python version: Python 3.13.x