exceptions.TypeError: 'NoneType' object has no attribute '__getitem__' code example
Example: AttributeError: 'NoneType' object has no attribute
node = child.find('EmentaMateria')
if node is not None:
ementa = node.text
else:
ementa = None
node = child.find('EmentaMateria')
if node is not None:
ementa = node.text
else:
ementa = None