Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Nov 21, 2023
1 parent ea19648 commit 9e05a32
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions shared_utils/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ def get_model_info(api: sly.Api, task_id, context, state, app_logger) -> sly.Pro
app_logger.debug("Session Info", extra={"info": info})

except Exception as e:
ui.set_error(
api,
task_id,
"Couldn't get model info. Make sure that model is deployed and try again.",
log_error=False,
)
msg = "Couldn't get model info. Make sure that model is deployed and try again."
app_logger.warning(msg)
ui.set_error(api, task_id, msg, log_error=False)
return model_meta, info

try:
Expand Down

0 comments on commit 9e05a32

Please sign in to comment.