You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We expected it will raise TypeError made by the Nirum runtime library with a nice message, but it fails due to None is passed to str() without validation about None value:
Traceback (mostrecentcalllast):
File"t.py", line2, in<module>deserialize_meta(str, None)
File"/.../nirum/deserialize.py", line212, indeserialize_metad=deserialize_primitive(cls, data)
File"/.../nirum/deserialize.py", line168, indeserialize_primitiveraiseValueError("'{}' is not a string.".format(data))
ValueError: 'None'isnotastring.
The text was updated successfully, but these errors were encountered:
The following code is for reproduction:
We expected it will raise
TypeError
made by the Nirum runtime library with a nice message, but it fails due toNone
is passed tostr()
without validation aboutNone
value:The text was updated successfully, but these errors were encountered: