Skip to content

Commit

Permalink
Fix exception name
Browse files Browse the repository at this point in the history
so we don't fail on repos without tags.
  • Loading branch information
agx committed Aug 31, 2010
1 parent b1bd417 commit 65bf135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-dch
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 65bf135

Please sign in to comment.