mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Fix crash in models publish_many without model task
This commit is contained in:
parent
4d2f282950
commit
9bf107866f
@ -516,7 +516,9 @@ def publish_many(call: APICall, company_id, request: ModelsPublishManyRequest):
|
||||
call.result.data_model = BatchResponse(
|
||||
succeeded=[
|
||||
dict(
|
||||
id=_id, updated=bool(updated), published_task=published_task.to_struct()
|
||||
id=_id,
|
||||
updated=bool(updated),
|
||||
published_task=published_task.to_struct() if published_task else None,
|
||||
)
|
||||
for _id, (updated, published_task) in results
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user