Skip to content

Commit

Permalink
Merge pull request #106 from gogobd/master
Browse files Browse the repository at this point in the history
Fixing #83
  • Loading branch information
gogobd authored Jul 9, 2021
2 parents 22897b3 + 20f15d3 commit 80cafd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
2.1.3 (unreleased)
------------------

- Fix Issue #83 where empty Versions caused an Error [gogobd]

2.1.2 (2021-07-02)
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Products/GenericSetup/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def registerStep(self, id, version=None, handler=None, dependencies=(),
if handler is None:
raise ValueError('No handler specified')

if already and already['version'] > version:
if already and already['version'] and already['version'] > version:
raise KeyError('Existing registration for step %s, version %s'
% (id, already['version']))

Expand Down

0 comments on commit 80cafd4

Please sign in to comment.