kapi2289 / vulcan-api

Unofficial UONET+ e-register API
https://vulcan-api.readthedocs.io/
MIT License
72 stars 17 forks source link

[Hotfix] Make grade category optional #66

Closed Antoni-Czaplicki closed 3 years ago

Antoni-Czaplicki commented 3 years ago

Make grade category optional to avoid error like that: TypeError: ("'category' must be <class 'vulcan.hebe.data._grade.GradeCategory'> (got None that is a <class 'NoneType'>).", Attribute(name='category', default=NOTHING, validator=<instance_of validator for type <class 'vulcan.hebe.data._grade.GradeCategory'>>, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({'key': 'Category'}), type=<class 'vulcan.hebe.data._grade.GradeCategory'>, converter=<related.converters.to_child_field.<locals>.ChildConverter object at 0x7f818b5100>, kw_only=False), <class 'vulcan.hebe.data._grade.GradeCategory'>, None)