From 639e26f27648d32852defb647620d32f9f19b696 Mon Sep 17 00:00:00 2001 From: almaz Date: Wed, 25 Oct 2023 11:19:01 +0200 Subject: [PATCH] raise exceprion with updated msg --- supervisely/train/src/sly_train.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/supervisely/train/src/sly_train.py b/supervisely/train/src/sly_train.py index 4383af41d09f..691c4ae2b8f7 100644 --- a/supervisely/train/src/sly_train.py +++ b/supervisely/train/src/sly_train.py @@ -155,10 +155,7 @@ def main(): try: ui.init(data, state) except Exception as e: - msg = f"Data initialization error. Check your project and try again. {repr(e)}" - my_app.show_modal_window(msg, level="error") - sly.logger.error(msg, exc_info=True, extra={ 'exc_str': str(e)}) - g.api.app.set_field(task_id, "state.started", False) + raise Exception(f"Data loading or UI initialization error. {repr(e)}") my_app.run(data=data, state=state)