fix None errno #5312

This commit is contained in:
Benjamin Peterson 2009-02-20 03:19:25 +00:00
parent 2fc224f090
commit 4b068190aa
2 changed files with 3 additions and 3 deletions

View file

@ -372,8 +372,8 @@ def _execvpe(file, args, env=None):
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.