Skip to content

Commit

Permalink
Fixed TypeError in manage changelog.
Browse files Browse the repository at this point in the history
Not all versions can be compared.
We might need to switch from distutils.LooseVersion to something from setuptools.
  • Loading branch information
mauritsvanrees committed Aug 21, 2019
1 parent c6142c3 commit 885cc54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plone/releaser/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ def build_unified_changelog(start_version, end_version):
except AttributeError as e:
# Bad version line, skip
pass
except TypeError:
# (Pdb) version > prior_version
# *** TypeError: '<' not supported between instances of 'int' and 'str'
# (Pdb) version, prior_version
# (LooseVersion ('5.2.0'), LooseVersion ('5.2a1'))
print("ERROR {0}: cannot compare prior version {1} with new version {2}".format(
package, prior_version, version)
)
except KeyboardInterrupt:
pass
print(output_str)

0 comments on commit 885cc54

Please sign in to comment.