AttributeError: 'NoneType' object has no attribute '__name__' code example
Example 1: 'NoneType' object has no attribute 'attname'
super().__init__(*args, **kwargs)
Example 2: AttributeError: 'NoneType' object has no attribute
node = child.find('EmentaMateria')
if node is not None:
ementa = node.text
else:
ementa = None