mirror of
https://github.com/lektor/lektor-website.git
synced 2025-02-22 07:00:38 +01:00
[master] Flipping incorrect comment explaining try/except
This commit is contained in:
parent
cdfabbbab8
commit
9449a161ec
@ -121,9 +121,9 @@ if 1:
|
||||
os.makedirs(lib_dir)
|
||||
except OSError:
|
||||
pass
|
||||
try:
|
||||
try: # virtualenv 16.1.0, 17+
|
||||
check_output([sys.executable, './src/virtualenv.py', lib_dir], cwd=t)
|
||||
except CalledProcessError: # virtualenv 16.1.0, 17+
|
||||
except CalledProcessError: # older virtualenv
|
||||
Popen([sys.executable, './virtualenv.py', lib_dir], cwd=t).wait()
|
||||
Popen([os.path.join(lib_dir, 'bin', 'pip'),
|
||||
'install', '--upgrade', 'Lektor']).wait()
|
||||
|
Loading…
Reference in New Issue
Block a user