Fix requirements cleanup

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-05-23 22:16:19 -04:00
parent c154350934
commit fddde1cce3
+2 -1
View File
@@ -317,7 +317,8 @@ def actually_resolve_reps(
'Please check your version specifier and version number. See PEP440 for more information.'
)
)
req_dir.cleanup()
if cleanup_req_dir:
req_dir.cleanup()
raise RuntimeError
if cleanup_req_dir:
req_dir.cleanup()