Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert masks TypeError #135

Open
sakird opened this issue Dec 26, 2024 · 1 comment
Open

assert masks TypeError #135

sakird opened this issue Dec 26, 2024 · 1 comment

Comments

@sakird
Copy link

sakird commented Dec 26, 2024

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?

@sakird
Copy link
Author

sakird commented Dec 26, 2024

Here is an image of relevant code and its link:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant