From 65bf13561b2c9b5c68327ffa88b53ad8cb575b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 31 Aug 2010 11:23:36 +0200 Subject: [PATCH] Fix exception name so we don't fail on repos without tags. --- git-dch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-dch b/git-dch index 0089529..541b069 100755 --- a/git-dch +++ b/git-dch @@ -129,7 +129,7 @@ def add_changelog_section(msg, distribution, repo, options, cp, new_version = "%s-1" % upstream if compare_versions(upstream, cp['Version']) > 0: version['version'] = new_version - except GitRepository: + except GitRepositoryError: if options.verbose: print "No tag found matching pattern %s." % pattern spawn_dch(msg=msg, newversion=True, version=version, author=author, email=email,