Skip to content

Fix MQTT connection argument validation #511

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

Closed
wants to merge 2 commits into from

Conversation

broglep-work
Copy link
Contributor

assert "some string" will never raise an exception, would have to assert False, "some string".
Raising an ValueError seems to be more fitting here.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

assert "some string" will never raise an exception
@xiazhvera
Copy link
Contributor

Good catch on the assert!
A TypeError might be a better choice here as the error is for a wrong argument type.
I will update the error and bring it in.

@xiazhvera
Copy link
Contributor

Thanks for the contribution! The fix has been merged in #513
Closing the PR...

@xiazhvera xiazhvera closed this Sep 13, 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.

2 participants