op_fee can be None, if it is not given

This commit is contained in:
Jude Nelson
2017-09-27 21:11:59 -04:00
parent c6e7399c46
commit 5842fed87a

View File

@@ -310,7 +310,7 @@ def check_register( state_engine, nameop, block_id, checked_ops ):
return False
# fee borne by the renewal
if not 'op_fee' in nameop:
if not 'op_fee' in nameop or nameop['op_fee'] is None:
log.debug("Renew: Name '%s' is registered but renewal did not pay the fee" % (name))
return False