20825: Raise WorkflowException instead of plain Exception
[arvados.git] / sdk / cwl / arvados_cwl / arvcontainer.py
index aa9fa1e90358f733bbd21932fa38ba90b908aa93..8a58066c19287c09f03c0072319d095a71ffb044 100644 (file)
@@ -612,7 +612,7 @@ class RunnerContainer(Runner):
             }
             container_req["properties"]["template_uuid"] = self.embedded_tool.tool["id"][6:33]
         elif self.embedded_tool.tool.get("id", "").startswith("file:"):
-            raise Exception("Tool id '%s' is a local file but expected keep: or arvwf:" % self.embedded_tool.tool.get("id"))
+            raise WorkflowException("Tool id '%s' is a local file but expected keep: or arvwf:" % self.embedded_tool.tool.get("id"))
         else:
             main = self.loadingContext.loader.idx["_:main"]
             if main.get("id") == "_:main":