Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
exc_details[1] --> exc
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
  • Loading branch information
iritkatriel and kumaraditya303 authored Jul 17, 2023
commit cc749034536332b3a5a7423446bdbfbc86d1ed08
2 changes: 1 addition & 1 deletion Lib/contextlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def _fix_exception_context(new_exc, old_exc):
exc = None
except BaseException as new_exc:
# simulate the stack of exceptions by setting the context
_fix_exception_context(new_exc, exc_details[1])
_fix_exception_context(new_exc, exc)
pending_raise = True
exc = new_exc

Expand Down