File tree 2 files changed +5
-1
lines changed
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(
1524
1524
except CantImport as e :
1525
1525
tb = traceback .format_exc ()
1526
1526
if verbose :
1527
- sys .stdout .write (tb )
1527
+ sys .stderr .write (tb )
1528
1528
if not quiet :
1529
1529
report_missing (mod , e .message , tb )
1530
1530
continue
Original file line number Diff line number Diff line change 5
5
import os .path
6
6
import re
7
7
import sys
8
+ import traceback
8
9
from abc import abstractmethod
9
10
from collections import defaultdict
10
11
from contextlib import contextmanager
@@ -70,6 +71,9 @@ def walk_packages(
70
71
try :
71
72
prop = inspect .get_package_properties (package_name )
72
73
except InspectError :
74
+ if verbose :
75
+ tb = traceback .format_exc ()
76
+ sys .stderr .write (tb )
73
77
report_missing (package_name )
74
78
continue
75
79
yield prop .name
You can’t perform that action at this time.
0 commit comments