pylint #124662 crash when symbos are included in output [validation pending]

prioritynormal
typebug
done in0.28.0
load0.100
load left0.000
closed by#aad82d0ccc1e fix name error causing crash when symbols are included in output messages. Closes #124662
patchwip: fix name error [applied]