Check if the light shader is PxrSphereLight, before trying to get the light color. We're using the sphere light shape as a default shape in the viewport.
Check if the light shader is PxrSphereLight, before trying to get the light color.
We're using the sphere light shape
as a default shape in the viewport.

prman-pixar/RenderManForBlender,prman-pixar/RenderManForBlender