Fix exception name
authorGuido Günther <agx@sigxcpu.org>
Tue, 31 Aug 2010 09:23:36 +0000 (11:23 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 31 Aug 2010 09:23:36 +0000 (11:23 +0200)
so we don't fail on repos without tags.

git-dch

diff --git a/git-dch b/git-dch
index 0089529..541b069 100755 (executable)
--- 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,