Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork144
Open
Description
Lines 227 to 232 inf8704ec
| try: | |
| module=importlib.import_module(module_path) | |
| exceptExceptionase: | |
| msg=f'Error importing{module!r}:{e.__class__.__name__}:{e}' | |
| ifnotskip_errors: | |
| raiseImportError(msg) |
Changeraise ImportError(msg) toraise ImportError(msg) from e:
try:module=importlib.import_module(module_path)exceptExceptionase:msg=f'Error importing{module!r}:{e.__class__.__name__}:{e}'ifnotskip_errors:raiseImportError(msg)frome
This improves exceptions readability.
I didn't search for other places in the repository, there're probably more places whereraise x from y would be useful.
Metadata
Metadata
Assignees
Labels
No labels