Fix Task.get_task raise proper error on incorrect task_id

This commit is contained in:
allegroai 2020-05-13 20:35:13 +03:00
parent 31a78d27d7
commit d2c9523769

View File

@ -109,6 +109,9 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
# this is an existing task, let's try to verify stuff
self._validate()
if self.data is None:
raise ValueError("Task ID \"{}\" could not be found".format(self.id))
self._project_name = (self.project, project_name)
if running_remotely() or DevWorker.report_stdout: