develmaycare / pyprojectutils

A collection of documentation and command line utilities for managing a software project.
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Bump Version AttributeError When There is No VERSION.txt File #24

Closed develmaycare closed 7 years ago

develmaycare commented 7 years ago

The following error is generated when there is no existing VERSION.txt file:

Traceback (most recent call last):
  File "/usr/local/bin/bumpversion", line 11, in <module>
    sys.exit(version_update())
  File "/usr/local/lib/python2.7/site-packages/pyprojectutils/cli.py", line 925, in version_update
    write_file(project.version_txt, version.to_string())
AttributeError: 'Project' object has no attribute 'version_txt'

Instead, the error should be trapped and the file created.