Python log ValueError math domain error (python 2.9)

I am getting a math domain error when I tried to calculate. I've tried to removing this line to see if it is the problem and indeed it is math.log10(y + 12)