From 68d317c34fabed079498d5f901bd138c1c93b6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Revuelta?= <46089290+rv0lt@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:21:46 +0200 Subject: [PATCH] Update dds_cli/project_status.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ina Odén Österbo <35953392+i-oden@users.noreply.github.com> --- dds_cli/project_status.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dds_cli/project_status.py b/dds_cli/project_status.py index f48b2d35..23c27b31 100644 --- a/dds_cli/project_status.py +++ b/dds_cli/project_status.py @@ -243,7 +243,11 @@ def extend_deadline(self): params={"project": self.project}, json=extra_params, ) - dds_cli.utils.console.print(f"Project {response_json.get('message')}") + message = response_json.get("message") + if not message: + raise DDSCLIException("No message returned from API. Cannot verify extension of project deadline.") + + LOG.info(message) class ProjectBusyStatusManager(base.DDSBaseClass):