mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix task delete response not checked
This commit is contained in:
parent
6f1b0c5612
commit
3006085fcb
@ -707,7 +707,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
]
|
||||
|
||||
task_deleted = self.send(tasks.DeleteRequest(self.task_id, force=True))
|
||||
if not task_deleted:
|
||||
if not task_deleted.ok():
|
||||
if raise_on_error:
|
||||
raise self.DeleteError("Failed deleting task {}".format(self.task_id))
|
||||
self.log.error("Failed deleting task {}".format(self.task_id))
|
||||
|
Loading…
Reference in New Issue
Block a user