File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1524,7 +1524,7 @@ def find_module_paths_using_imports(
15241524 except CantImport as e :
15251525 tb = traceback .format_exc ()
15261526 if verbose :
1527- sys .stdout .write (tb )
1527+ sys .stderr .write (tb )
15281528 if not quiet :
15291529 report_missing (mod , e .message , tb )
15301530 continue
Original file line number Diff line number Diff line change 55import os .path
66import re
77import sys
8+ import traceback
89from abc import abstractmethod
910from collections import defaultdict
1011from contextlib import contextmanager
@@ -70,6 +71,9 @@ def walk_packages(
7071 try :
7172 prop = inspect .get_package_properties (package_name )
7273 except InspectError :
74+ if verbose :
75+ tb = traceback .format_exc ()
76+ sys .stderr .write (tb )
7377 report_missing (package_name )
7478 continue
7579 yield prop .name
You can’t perform that action at this time.
0 commit comments