Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing zopefoundation#83 by being more careful
  • Loading branch information
gogobd authored Apr 9, 2021
1 parent 798cb00 commit f03b66c
Showing 1 changed file with 1 addition and 1 deletion.
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 f03b66c

Please sign in to comment.