Revision 1cc324f0
b/lib/utils/__init__.py | ||
---|---|---|
99 | 99 |
if ktype in (constants.VTYPE_STRING, constants.VTYPE_MAYBE_STRING): |
100 | 100 |
if target[key] is None and ktype == constants.VTYPE_MAYBE_STRING: |
101 | 101 |
msg = "'None' is not a valid Maybe value. Use 'VALUE_HS_NOTHING'" |
102 |
raise errors.TypeEnforcementError(msg)
|
|
102 |
logging.warning(msg)
|
|
103 | 103 |
elif (target[key] == constants.VALUE_HS_NOTHING |
104 | 104 |
and ktype == constants.VTYPE_MAYBE_STRING): |
105 | 105 |
pass |
Also available in: Unified diff