From 9611115c4d4a80fbca7b18feed2bbca389d8ff5a Mon Sep 17 00:00:00 2001 From: Johannes Nussbaum <39048939+jnussbaum@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:06:02 +0200 Subject: [PATCH] docs: precise resume-xmlupload (#900) --- docs/cli-commands.md | 2 +- src/dsp_tools/commands/xmlupload/xmlupload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli-commands.md b/docs/cli-commands.md index 55b6d6ca2..4f60e7fc5 100644 --- a/docs/cli-commands.md +++ b/docs/cli-commands.md @@ -180,7 +180,7 @@ this file must remain in place. |--------------------------------------------------------------------------| | We do not guarantee that the state of an xmlupload is cleanly saved after `Ctrl + C`. We only guarantee this for `dsp-tools xmlupload --interrupt-after`. | -This command resumes a previously interrupted XML upload. +This command resumes a previously interrupted `xmlupload` or `ingest-xmlupload`. ```bash dsp-tools resume-xmlupload [options] diff --git a/src/dsp_tools/commands/xmlupload/xmlupload.py b/src/dsp_tools/commands/xmlupload/xmlupload.py index 890a964b6..ca7deb17b 100644 --- a/src/dsp_tools/commands/xmlupload/xmlupload.py +++ b/src/dsp_tools/commands/xmlupload/xmlupload.py @@ -474,7 +474,7 @@ def _create_resource( # raise it here. raise err except Exception as err: # noqa: BLE001 (blind-except) - msg = f"{datetime.now()}: WARNING: Unable to create resource '{resource.label}' ({resource.res_id})" + msg = f"{datetime.now()}: WARNING: Unable to create resource '{resource.label}' (ID: '{resource.res_id}')" if isinstance(err, BaseError): msg = f"{msg}: {err.message}" print(msg)