!32384 Fix backslash before variable in nn.cell

Merge pull request !32384 from 冯一航/fix_cell_1063
This commit is contained in:
i-robot 2022-04-06 09:30:02 +00:00 committed by Gitee
commit ceb0d5afa2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -1069,7 +1069,7 @@ class Cell(Cell_):
"""
if not child_name or '.' in child_name:
raise KeyError("For 'insert_child_to_cell', the argument 'child_name' should not be None and "
"should not contain \".\"")
"should not contain '.'")
if hasattr(self, child_name) and child_name not in self._cells:
raise KeyError("For 'insert_child_to_cell', the {} child cell already exists in the network. Cannot "
"insert another child cell with the same name.".format(child_name))