Commit bad9691
committed
Add comments explaining exception catching strategy
Explain why we catch broad Exception for import_main_path() (it uses
runpy.run_path() which can raise any exception) vs only ImportError
for regular __import__() calls.1 parent 30c2cf8 commit bad9691
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
| 264 | + | |
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
| |||
0 commit comments