ExceptionInfo.from_current: pass through exprinfo

This was lost in 11f1f79222.
This commit is contained in:
Daniel Hahler 2019-10-19 03:01:10 +02:00
parent c9524af5ae
commit cd753aa4ab
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ class ExceptionInfo(Generic[_E]):
assert tup[1] is not None, "no current exception"
assert tup[2] is not None, "no current exception"
exc_info = (tup[0], tup[1], tup[2])
return cls.from_exc_info(exc_info)
return cls.from_exc_info(exc_info, exprinfo)
@classmethod
def for_later(cls) -> "ExceptionInfo[_E]":