summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py4
1 files changed, 2 insertions, 2 deletions
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 @@ 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.