Get rid of context for exceptions outside PackageBase (#33887)

This commit is contained in:
Harmen Stoppels
2022-11-14 14:11:22 +01:00
committed by GitHub
parent e4e02dbeae
commit a75af62fe3

View File

@@ -1269,6 +1269,8 @@ def make_stack(tb, stack=None):
obj = frame.f_locals["self"]
if isinstance(obj, spack.package_base.PackageBase):
break
else:
return None
# We found obj, the Package implementation we care about.
# Point out the location in the install method where we failed.