commit | 4b068190aa4de5ade2d755ee25dbf3d21452616a | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Feb 20 03:19:25 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Feb 20 03:19:25 2009 +0000 |
tree | c8d3f36e693dbc7c407e5ded530d7ba848b69788 | |
parent | 2fc224f0904f398be79e40616cc8a4570375c786 [diff] [blame] |
fix None errno #5312
diff --git a/Lib/os.py b/Lib/os.py index 5a020d3..65f88ba 100644 --- a/Lib/os.py +++ b/Lib/os.py
@@ -372,8 +372,8 @@ saved_exc = e saved_tb = tb if saved_exc: - raise error(saved_exc).with_traceback(saved_tb) - raise error(last_exc).with_traceback(tb) + raise saved_exc.with_traceback(saved_tb) + raise last_exc.with_traceback(tb) # Change environ to automatically call putenv(), unsetenv if they exist.