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

Technical debt: replace ImportError with ModuleNotFoundError where appropriate #2378

Open
Avasam opened this issue Oct 4, 2024 · 0 comments

Comments

@Avasam
Copy link
Collaborator

Avasam commented Oct 4, 2024

As per:

try:
import pywin32_system32
except ImportError: # Python ≥3.6: replace ImportError with ModuleNotFoundError
pass

ModuleNotFoundError can be used as a more precise error since Python 3.6

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

No branches or pull requests

1 participant