Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1966f1c commit c59dacdCopy full SHA for c59dacd
1 file changed
Lib/contextlib.py
@@ -125,7 +125,8 @@ def nested(*managers):
125
# Don't rely on sys.exc_info() still containing
126
# the right information. Another exception may
127
# have been raised and caught by an exit method
128
- raise exc[0](exc[1]).with_traceback(exc[2])
+ # exc[1] already has the __traceback__ attribute populated
129
+ raise exc[1]
130
131
132
class closing(object):
0 commit comments