[fixed]Can I use shaders (glow) on geom nodes?

EDIT:

I fixed it. I’m working on two computers and copied/pasted from one to another. My tabs in python got converted to spaces.

Let my stupidity be a warning to everyone. Or a mod can feel free to delete this!

I have this code:

	def makeCube(self,x,y,z):

		square0=self.makeSquare(x,y,z,x+1,y,z+1)
		square1=self.makeSquare(x,y,z,x,y+1,z+1)
		square2=self.makeSquare(x+1,y,z,x+1,y+1,z+1)
		square3=self.makeSquare(x,y+1,z,x+1,y+1,z+1)
		square4=self.makeSquare(x,y,z+1,x+1,y+1,z+1)
		square5=self.makeSquare(x,y,z,x+1,y+1,z)
		snode=GeomNode('square')
		snode.addGeom(square0)
		snode.addGeom(square1)
		snode.addGeom(square2)
		snode.addGeom(square3)
		snode.addGeom(square4)
		snode.addGeom(square5)
		cube=render.attachNewNode(snode)
		
		
		cube.setTwoSided(True)
		
		cube.setTexture(loader.loadTexture("assets/models/glow-diffuse.png"))
		glowMap = loader.loadTexture("assets/models/glow-lightmap.png")
      glowTex = TextureStage('glowTex')
      glowTex.setMode(TextureStage.MGlow)
      cube.setTexture(glowTex, glowMap)

When I run it, I get:

cube.setTexture(glowTex, glowMap)
NameError: name ‘cube’ is not defined

Is there a way I can accomplish what I’m trying to do here?