Open jrs65 opened 5 years ago
Same here. Running with redbaron.DEBUG
shows the following:
The first error
Traceback (most recent call last):
File "/home/chris/.virtualenvs/tmp.RD9yDcNxAp/lib/python3.7/site-packages/redbaron/base_nodes.py", line 36, in wrapper
return function(*args, **kwargs)
File "/home/chris/.virtualenvs/tmp.RD9yDcNxAp/lib/python3.7/site-packages/redbaron/base_nodes.py", line 293, in root
current = current.parent
AttributeError: 'NoneType' object has no attribute 'parent'
seems to be fundamentally the following: r.node_list[1].parent.parent.parent
, which fails because the node list itself does not have a parent. This happens here, but the change was several years ago, so it doesn't really explain why this is happening now.
I'm trying to use Red Baron (which seems great), but I'm having a bit of a weird crash when inserting nodes. This actually fails with the example given in the documentation
However, other then
.help()
everything seems to work fine after the insertion. For instance:I'm using:
on Python 2.7.15.
The full output and traceback of the
.help()
call is: