From f721ad65084e236591c33b2dadf24b8c1c1b6466 Mon Sep 17 00:00:00 2001 From: Marco Enrico Piras Date: Wed, 29 Sep 2021 16:11:04 +0000 Subject: [PATCH] Fix exception message --- lifemonitor/api/models/rocrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lifemonitor/api/models/rocrate.py b/lifemonitor/api/models/rocrate.py index 82559b150..b7f80fcfb 100644 --- a/lifemonitor/api/models/rocrate.py +++ b/lifemonitor/api/models/rocrate.py @@ -116,7 +116,7 @@ def load_metadata(self) -> dict: def download(self, target_path: str) -> str: # report if the workflow is not longer available on the origin server if self._metadata and not check_resource_exists(self.uri): - raise lm_exceptions.DownloadException(detail=f"Workflow not found on the origin: {self.uri}", status=410) + raise lm_exceptions.DownloadException(detail=f"Not found: {self.uri}", status=410) errors = [] # try either with authorization header and without authorization