Skip to content

Commit

Permalink
Fixed added exception handling for Python 3 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Mar 24, 2011
1 parent fc759d9 commit 6bece29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtualenv.py
Expand Up @@ -1129,7 +1129,8 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
proc = subprocess.Popen(cmd,
stdout=subprocess.PIPE)
proc_stdout, proc_stderr = proc.communicate()
except OSError, e:
except OSError:
e = sys.exc_info()[1]
if e.errno == errno.EACCES:
logger.fatal('ERROR: The executable %s could not be run: %s' % (py_executable, e))
sys.exit(100)
Expand Down

0 comments on commit 6bece29

Please sign in to comment.