Have an object not be affected by light?

I am sure there is a simple way to do this, I just couldn’t find it. I read about setting lights to nodes, but I want the light to illuminate everything in that node, except that object.

Thank you for your help!

object.setLightOff()

Thank you very much!