Get rid of context for exceptions outside PackageBase (#33887)
This commit is contained in:
parent
e4e02dbeae
commit
a75af62fe3
@ -1269,6 +1269,8 @@ def make_stack(tb, stack=None):
|
|||||||
obj = frame.f_locals["self"]
|
obj = frame.f_locals["self"]
|
||||||
if isinstance(obj, spack.package_base.PackageBase):
|
if isinstance(obj, spack.package_base.PackageBase):
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
# We found obj, the Package implementation we care about.
|
# We found obj, the Package implementation we care about.
|
||||||
# Point out the location in the install method where we failed.
|
# Point out the location in the install method where we failed.
|
||||||
|
Loading…
Reference in New Issue
Block a user