Skip to content

assert masks TypeError #135

@sakird

Description

@sakird

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions