Commit c45a076
Handle ModuleNotFoundError in pyimport (#579)
Python 3.6 adds `ModuleNotFoundError` which is a subclass of
`ImportError`. We need to handle all instances of `ImportError`
subclasses as `ImportError` to show instructions about Python
packaging.
https://docs.python.org/3/library/exceptions.html#ModuleNotFoundError1 parent 28f75b0 commit c45a076
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
324 | 336 | | |
325 | 337 | | |
326 | 338 | | |
| |||
0 commit comments