Commit 365bdc5
Only catch SystemExit in api.run() (#2633)
mypy.main.main() calls `sys.exit(1)` in case of errors. We don't want this to
bubble up during API usage.
Other exceptions raised from `mypy.main.main()` shouldn't be swallowed as they
point out at internal errors or environment errors (no memory, interrupts,
etc.).1 parent c6bae48 commit 365bdc5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments