Skip to content

Commit 533834b

Browse files
It seems that if the mypy cache dir wasn't created, this code would do an exit, preventing the actual errors from being printed. So I've removed the exit.
1 parent 6069718 commit 533834b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mypy/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,6 @@ def read_types_packages_to_install(cache_dir: str, after_run: bool) -> list[str]
15491549
)
15501550
else:
15511551
sys.stderr.write("error: --install-types failed (no mypy cache directory)\n")
1552-
sys.exit(2)
15531552
fnam = build.missing_stubs_file(cache_dir)
15541553
if not os.path.isfile(fnam):
15551554
# No missing stubs.

0 commit comments

Comments
 (0)