From 516d1ecb85eb13ec74c012dfbe2f755a2c8f716e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 22 Apr 2017 21:57:09 +0300 Subject: Fix handling of missing version.{py,txt,yaml} --- bumper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- cgit v1.2.1