I would like to know how to get rid of this error.
itemDesc.replace (';', '')
An error occurs on this line, this variable contains the html code.
An error occurs:
TypeError: ‘NoneType’ object is not callable
Answer 1, authority 100%
We must trust Python.
Your itemDesc object is of type NoneType . There is no replace method for it
You write that the variable contains html code, but apparently this is not the case.
Check the type and act depending on the result.
& gt; & gt; & gt; type (itemDesc)
I already figured it out, I understood that you need to declare a variable as a string, but for some reason this option did not work
itemDesc = str (itemDesc)
Suggest like this:
itemDesc = itemDesc .__ str __ (). replace ('', '') & lt; br & gt;