ExceptionInfo.from_current: pass through exprinfo (#6002)
This commit is contained in:
commit
119bf66d7a
|
@ -448,7 +448,7 @@ class ExceptionInfo(Generic[_E]):
|
||||||
assert tup[1] is not None, "no current exception"
|
assert tup[1] is not None, "no current exception"
|
||||||
assert tup[2] is not None, "no current exception"
|
assert tup[2] is not None, "no current exception"
|
||||||
exc_info = (tup[0], tup[1], tup[2])
|
exc_info = (tup[0], tup[1], tup[2])
|
||||||
return cls.from_exc_info(exc_info)
|
return cls.from_exc_info(exc_info, exprinfo)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def for_later(cls) -> "ExceptionInfo[_E]":
|
def for_later(cls) -> "ExceptionInfo[_E]":
|
||||||
|
|
Loading…
Reference in New Issue