Skip to content

Commit

Permalink
Update dds_cli/project_status.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ina Odén Österbo <[email protected]>
  • Loading branch information
rv0lt and i-oden authored Oct 20, 2023
1 parent 86039bd commit 68d317c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dds_cli/project_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 68d317c

Please sign in to comment.