From 65bf13561b2c9b5c68327ffa88b53ad8cb575b99 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 31 Aug 2010 11:23:36 +0200 Subject: Fix exception name so we don't fail on repos without tags. --- git-dch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-dch') diff --git a/git-dch b/git-dch index 00895290..541b0699 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, -- cgit v1.2.3