mirror of
				https://github.com/clearml/clearml
				synced 2025-06-26 18:16:07 +00:00 
			
		
		
		
	Fix Task.set_comment/name() passing None should be equivalent to ''
This commit is contained in:
		
							parent
							
								
									fe76680eda
								
							
						
					
					
						commit
						b1dbc9b7a2
					
				| @ -1365,6 +1365,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): | ||||
|         :param name: The name of the Task. | ||||
|         :type name: str | ||||
|         """ | ||||
|         name = name or '' | ||||
|         self._set_task_property("name", str(name)) | ||||
|         self._edit(name=self.data.name) | ||||
| 
 | ||||
| @ -1391,8 +1392,9 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): | ||||
|         :param comment: The comment / description for the Task. | ||||
|         :type comment: str | ||||
|         """ | ||||
|         comment = comment or '' | ||||
|         self._set_task_property("comment", str(comment)) | ||||
|         self._edit(comment=comment) | ||||
|         self._edit(comment=str(comment)) | ||||
| 
 | ||||
|     def set_task_type(self, task_type): | ||||
|         # type: (Union[str, Task.TaskTypes]) -> () | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 allegroai
						allegroai