nodes: fix tracebacks from collection errors are not getting pruned (#11711)
Fix #11710.
This commit is contained in:
@@ -579,7 +579,7 @@ class Collector(Node, abc.ABC):
|
||||
ntraceback = traceback.cut(path=self.path)
|
||||
if ntraceback == traceback:
|
||||
ntraceback = ntraceback.cut(excludepath=tracebackcutdir)
|
||||
return excinfo.traceback.filter(excinfo)
|
||||
return ntraceback.filter(excinfo)
|
||||
return excinfo.traceback
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user