This commit is contained in:
Ken Conley 2009-09-30 21:26:01 +00:00
parent b635d8b59a
commit 842c656345
1 changed files with 1 additions and 1 deletions

View File

@ -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_)