From f019905720529acbd316bd39b67c5ab0c02fcd55 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sun, 28 Feb 2021 19:47:09 +0200 Subject: [PATCH] Fix venv cache support for local folders --- clearml_agent/helper/package/external_req.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clearml_agent/helper/package/external_req.py b/clearml_agent/helper/package/external_req.py index f64ee43..1c1b898 100644 --- a/clearml_agent/helper/package/external_req.py +++ b/clearml_agent/helper/package/external_req.py @@ -21,7 +21,8 @@ class ExternalRequirements(SimpleSubstitution): # noinspection PyBroadException try: if not req.name and req.req and not req.req.editable and not req.req.vcs and \ - req.req.line and not req.req.line.strip().split('#')[0].lower().endswith('.whl'): + req.req.line and req.req.line.strip().split('#')[0] and \ + not req.req.line.strip().split('#')[0].lower().endswith('.whl'): return True except Exception: pass