| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -125,7 +125,8 @@ def nested(*managers): | |||
| 125 | 125 | # Don't rely on sys.exc_info() still containing | |
| 126 | 126 | # the right information. Another exception may | |
| 127 | 127 | # have been raised and caught by an exit method | |
| 128 | - raise exc[0](exc[1]).with_traceback(exc[2]) | ||
| 128 | + # exc[1] already has the __traceback__ attribute populated | ||
| 129 | + raise exc[1] | ||
| 129 | 130 | ||
| 130 | 131 | ||
| 131 | 132 | class closing(object): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments