Skip to content

Commit

Permalink
raise exceprion with updated msg
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Oct 25, 2023
1 parent 4d7d92a commit 639e26f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions supervisely/train/src/sly_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 639e26f

Please sign in to comment.