diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-04-22 21:57:09 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-04-22 21:57:09 +0300 |
commit | 516d1ecb85eb13ec74c012dfbe2f755a2c8f716e (patch) | |
tree | dd19d3ba818917e7cd639d8ea29c10db133b7e83 /bumper | |
parent | 2ea78fc9a3d39fe8833062910c512008502b7ae8 (diff) | |
download | bumper-516d1ecb85eb13ec74c012dfbe2f755a2c8f716e.tar.gz |
Fix handling of missing version.{py,txt,yaml}
Diffstat (limited to 'bumper')
-rwxr-xr-x | bumper | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ class Bumper(cliapp.Application): if x == basename or x.endswith('/' + basename) ] if len(version_files) == 0: - raise cliapp.AppException('No {} in project'.format(basename)) + return None elif len(version_files) > 1: raise cliapp.AppException('Too many {} in project'.format(basename)) return version_files[0] |