summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-08-31 11:23:36 +0200
committerGuido Günther <agx@sigxcpu.org>2010-08-31 11:23:36 +0200
commit65bf13561b2c9b5c68327ffa88b53ad8cb575b99 (patch)
tree8515e11b7d0383052da110f9feb6e032a55ec893
parentb1bd41757d54b8766368580d352e7aecb5d3a409 (diff)
Fix exception name
so we don't fail on repos without tags.
-rwxr-xr-xgit-dch2
1 files changed, 1 insertions, 1 deletions
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,