mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Fix crash when importing events for public company tasks
This commit is contained in:
parent
5799baae45
commit
ee8eb03698
@ -182,6 +182,9 @@ def get_many_tasks_for_writing(
|
||||
)
|
||||
)
|
||||
|
||||
if not company_id:
|
||||
return result
|
||||
|
||||
forbidden_tasks = {task.id for task in result if not task.company}
|
||||
if forbidden_tasks:
|
||||
if throw_on_forbidden:
|
||||
|
Loading…
Reference in New Issue
Block a user