I just learned the below:
tl = bpy.context.scene.node_tree.links
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'links'
I just learned the below:
tl = bpy.context.scene.node_tree.links
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'links'