Skip to content

Commit

Permalink
Fixed old-style exceptions in changelog.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Aug 16, 2019
1 parent f0d5021 commit 10513b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/releaser/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def build_unified_changelog(start_version, end_version):
try:
prior_versions = pull_versions(start_version)
current_versions = pull_versions(end_version)
except ValueError, e:
except ValueError as e:
print(e)
return

Expand Down Expand Up @@ -208,7 +208,7 @@ def build_unified_changelog(start_version, end_version):
changelog = Changelog(content=logtext)
try:
changes = changelog.get_changes(prior_version, version)
except ValueError, e:
except ValueError as e:
print(e)
else:
bullet = "- "
Expand Down

0 comments on commit 10513b2

Please sign in to comment.