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

Consistent messages if imports fail #1831

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Consistent messages if imports fail #1831

merged 1 commit into from
Oct 17, 2023

Conversation

alexrudd2
Copy link
Collaborator

@alexrudd2 alexrudd2 commented Oct 17, 2023

Supercedes #1827

This PR makes consistent error messages when an import (either aiohttp or pyserial) is missing, warning the user they will need to install the appropriate package.

This also has the benefit of reducing a few mypy errors in strict mode.

@alexrudd2
Copy link
Collaborator Author

REPL is not considered for now; that can be done later.

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

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

LGTM. Would be nice if you do REPL later.

@alexrudd2 alexrudd2 merged commit 545e636 into dev Oct 17, 2023
1 check passed
@alexrudd2 alexrudd2 deleted the import-errors-new branch October 17, 2023 18:10
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants