mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
stree.StringTree.py.__set(): Disable assert self.content != str(content)
There's an assertion in StringTree.py.__set(), assert self.content != str(content), which often triggers. Not sure what the idea behind the assertion was, disable it. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
4b4d8ebdb0
commit
d30c41b03d
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class StringTree: # export
|
|||
|
||||
def __set(self, path_, content, split=True):
|
||||
slog(DEBUG, ('At "{}": '.format(str(self.content)) if hasattr(self, "content") else "") + f'Setting "{path_}" -> "{content}"')
|
||||
assert self.content != str(content)
|
||||
#assert self.content != str(content) # Not sure what the idea behind this was. It often goes off, and all works fine without.
|
||||
if content is not None and not type(content) in [str, StringTree]:
|
||||
raise Exception("Tried to add content of unsupported type {}".format(type(content).__name__))
|
||||
if path_ is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue