diff --git a/supervisely/train/src/sly_train.py b/supervisely/train/src/sly_train.py index 7aa0675104c6..63a7a82769d5 100644 --- a/supervisely/train/src/sly_train.py +++ b/supervisely/train/src/sly_train.py @@ -120,9 +120,7 @@ def train(api: sly.Api, task_id, context, state, app_logger): upload_artifacts(g.local_artifacts_dir, g.remote_artifacts_dir) set_task_output() except Exception as e: - msg = f"Oops! Something went wrong, please try again or contact tech support. Find more info in the app logs. Error: {repr(e)}" - sly.logger.error(msg, exc_info=True, extra={ 'exc_str': str(e)}) - my_app.show_modal_window(msg, level="error") + my_app.show_modal_window(f"Something went wrong. Find more info in the app logs. Error: {str(e)}", level="error") api.app.set_field(task_id, "state.started", False) # stop application