Skip to content

Commit c1eb4c9

Browse files
committed
fix tests
1 parent b0fed12 commit c1eb4c9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mypy/stubtest.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,16 +1497,15 @@ def build_stubs(modules: list[str], options: Options, find_submodules: bool = Fa
14971497
# find submodules via pkgutil
14981498
try:
14991499
runtime = silent_import_module(module)
1500-
except KeyboardInterrupt:
1501-
raise
1502-
except BaseException:
1503-
pass
1504-
else:
15051500
all_modules.extend(
15061501
m.name
15071502
for m in pkgutil.walk_packages(runtime.__path__, runtime.__name__ + ".")
15081503
if m.name not in all_modules
15091504
)
1505+
except KeyboardInterrupt:
1506+
raise
1507+
except BaseException:
1508+
pass
15101509

15111510
if sources:
15121511
try:

0 commit comments

Comments
 (0)