mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Fix Task.init() casts init task_type None to str
This commit is contained in:
parent
6bc9d705a0
commit
ab5059e8e1
@ -351,7 +351,7 @@ class Task(_Task):
|
||||
validate = [
|
||||
('project name', project_name, cls.__main_task.get_project_name()),
|
||||
('task name', task_name, cls.__main_task.name),
|
||||
('task type', str(task_type), str(cls.__main_task.task_type)),
|
||||
('task type', str(task_type) if task_type else task_type, str(cls.__main_task.task_type)),
|
||||
]
|
||||
|
||||
for field, default, current in validate:
|
||||
|
Loading…
Reference in New Issue
Block a user