On line 101 of custom.py there is an assert line:
assert handler is not None
and below it, there is a TypeError raised if assert is true:
if handler is None: raise TypeError("Your input type to custom model is not currently supported")
this TypeError is not returning to developer and makes it hard to understand the cause of the error.
It seems asserting line is not necessary. Can we remove it?
On line 101 of custom.py there is an assert line:
assert handler is not Noneand below it, there is a TypeError raised if assert is true:
if handler is None: raise TypeError("Your input type to custom model is not currently supported")this TypeError is not returning to developer and makes it hard to understand the cause of the error.
It seems asserting line is not necessary. Can we remove it?