-
Notifications
You must be signed in to change notification settings - Fork 12
Custom Exceptions Causing TypeErrors #15
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
Comments
hmm -- I reproduced this error on a few CP boards -- grandcentral, teensy 4.0 reintroducing the "pass" statements does not fix it for the CP boards. |
Yes, it looks like this construct is not supported on CircuitPython. We're not likely to be able to add support for it, so unfortunately I don't see a way forward except for reverting it. Perhaps someone else does.
Any time an inheritance tree of classes includes more than one native base class among all its bases, this error will occur. |
I must say that this is one of most perplexing error messages I have ever received |
Could we just have the custom Exceptions not inherit from two types? Specifically, I think we can remove AM2320Exception and just leave the stock parents. |
I have no idea what that means, but it sounds fine to me ;-) |
@tannewt ah -- I see the PR was merged -- Do you want to create a new PR to address this? Should I hold off on releasing? |
@jerryneedell I don't plan on making a PR but it'd be great if someone else would. I think it's ok to do a major release now to get the fix out. |
According to what I see this was resolved with 1.2.2 - Reverted PR #9. If there is no disagreement I think we can proceed to close this issue |
Closing. Thanks. |
A user in Discord brought this issue up. They receive the following exception when trying to use the library:
Line 84 points to a custom exception, which came from #9. This was included in release
1.1.4
onward.The user confirmed that release
1.1.3
does not raise the TypeError exception.The text was updated successfully, but these errors were encountered: