Skip to content

Remove assert's #85

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

Merged
merged 6 commits into from
Jan 6, 2023
Merged

Remove assert's #85

merged 6 commits into from
Jan 6, 2023

Conversation

bill88t
Copy link
Contributor

@bill88t bill88t commented Dec 20, 2022

This is following #67 and is independent to it.
Closes #83 .

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! These are not really assertion failures, in many cases, but RuntimeErrors or similar, because they do not reflect an error in the code (which is what assertions are checking). So could you consider what exception you would like to be raised for these? The wifi exceptions for similar problems could be used as a model, if they make sense.

@bill88t
Copy link
Contributor Author

bill88t commented Dec 20, 2022

This was a minimally invasive pr, however since requested, I will update the exceptions based on wifi.

@bill88t bill88t marked this pull request as ready for review December 20, 2022 15:02
@bill88t bill88t requested a review from dhalbert December 20, 2022 15:02
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good to me! The exceptions chosen are appropriate.

@bill88t
Copy link
Contributor Author

bill88t commented Dec 20, 2022

Updated to fix conflicts & to switch w5100_init to w5xxx_init

@tekktrik
Copy link
Member

tekktrik commented Jan 6, 2023

Is this good to go now that changes from main are merged?

@bill88t
Copy link
Contributor Author

bill88t commented Jan 6, 2023

Yep, its done.

@tekktrik tekktrik merged commit f97e78c into adafruit:main Jan 6, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 7, 2023
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

Successfully merging this pull request may close these issues.

Don't use asserts for necessary code
3 participants