elif
This commit is contained in:
parent
b635d8b59a
commit
842c656345
|
@ -409,7 +409,7 @@ def _convert_val(type_, val):
|
|||
if val > upper or val < lower:
|
||||
raise MsgSpecException("cannot coerce [%s] to %s (out of bounds)"%(val, type_))
|
||||
return val
|
||||
else if type == 'bool':
|
||||
elif type == 'bool':
|
||||
# TODO: need to nail down constant spec for bool
|
||||
return True if eval(val) else False
|
||||
raise MsgSpecException("invalid constant type: [%s]"%type_)
|
||||
|
|
Loading…
Reference in New Issue