Commit 9cce264
committed
Normalize tk load failures to ImportErrors.
Wrapping the internally raised exception should make it easier
to debug any failures. Test e.g. by replacing `__file__` by
`_file_` in the same source file and recompiling to trigger an
AttributeError-that-gets-wrapped-by-ImportError.1 parent 037fcca commit 9cce264
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
345 | 351 | | |
346 | 352 | | |
347 | | - | |
| 353 | + | |
348 | 354 | | |
349 | 355 | | |
350 | | - | |
| 356 | + | |
351 | 357 | | |
352 | 358 | | |
353 | | - | |
| 359 | + | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
| |||
0 commit comments