Avoid references to websocket_api.const in core and other components (#119285)

This commit is contained in:
epenet
2024-06-10 13:49:44 +02:00
committed by GitHub
parent 2e3c3789d3
commit 960d1289ef
25 changed files with 49 additions and 63 deletions

View File

@@ -353,7 +353,7 @@ def websocket_get_run(
if pipeline_id not in pipeline_data.pipeline_debug:
connection.send_error(
msg["id"],
websocket_api.const.ERR_NOT_FOUND,
websocket_api.ERR_NOT_FOUND,
f"pipeline_id {pipeline_id} not found",
)
return
@@ -363,7 +363,7 @@ def websocket_get_run(
if pipeline_run_id not in pipeline_debug:
connection.send_error(
msg["id"],
websocket_api.const.ERR_NOT_FOUND,
websocket_api.ERR_NOT_FOUND,
f"pipeline_run_id {pipeline_run_id} not found",
)
return