From 60afd70dfe2d447334c3954e28dc8746c1b02b79 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:37:05 +0100 Subject: [PATCH] raise error notification if step can't be started --- cbpi/__init__.py | 2 +- cbpi/controller/step_controller.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index 869226b..235d03c 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1,3 +1,3 @@ -__version__ = "4.3.2.a2" +__version__ = "4.3.2.a3" __codename__ = "Winter Storm" diff --git a/cbpi/controller/step_controller.py b/cbpi/controller/step_controller.py index 651b3fb..42364cb 100644 --- a/cbpi/controller/step_controller.py +++ b/cbpi/controller/step_controller.py @@ -9,7 +9,7 @@ from os import listdir import os from os.path import isfile, join import shortuuid -from cbpi.api.dataclasses import NotificationAction, Props, Step +from cbpi.api.dataclasses import NotificationAction, NotificationType, Props, Step from tabulate import tabulate from ..api.step import StepMove, StepResult, StepState @@ -299,6 +299,7 @@ class StepController: await step.instance.start() step.status = StepState.ACTIVE except Exception as e: + self.cbpi.notify("Error", "Can't start step. Please check step in Mash Profile", NotificationType.ERROR) logging.error("Failed to start step %s" % step) async def save_basic(self, data):