mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
fix None errno #5312
This commit is contained in:
parent
2fc224f090
commit
4b068190aa
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue