summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-22 21:57:09 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-22 21:57:09 +0300
commit516d1ecb85eb13ec74c012dfbe2f755a2c8f716e (patch)
treedd19d3ba818917e7cd639d8ea29c10db133b7e83
parent2ea78fc9a3d39fe8833062910c512008502b7ae8 (diff)
downloadbumper-516d1ecb85eb13ec74c012dfbe2f755a2c8f716e.tar.gz
Fix handling of missing version.{py,txt,yaml}
-rwxr-xr-xbumper2
1 files changed, 1 insertions, 1 deletions
diff --git a/bumper b/bumper
index 6c949bd..08e1951 100755
--- a/bumper
+++ b/bumper
@@ -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]