Check temp_env.yml existence before deleting

This commit is contained in:
Simon Boehm 2020-12-21 12:57:38 +01:00
parent 6ee227326c
commit a2ca862130
No known key found for this signature in database
GPG key ID: 59DF9146ABE67092

View file

@ -80,7 +80,8 @@ def install_environment(
tmp_env_file.name, cwd=prefix.prefix_dir,
)
finally:
os.remove(tmp_env_file.name)
if os.path.exists(tmp_env_file.name):
os.remove(tmp_env_file.name)
def run_hook(