--- solarwolf-1.5.old/code/stars.py +++ solarwolf-1.5/code/stars.py @@ -33,9 +33,12 @@ numstars = self.numstars + change numstars = max(min(numstars, self.maxstars/2), 0) if numstars < self.numstars: - DIRTY, BGD = gfx.dirty, self.last_background - for rect, vel, col in self.stars[self.odd][numstars:self.numstars]: - DIRTY(BGD(rect)) + try: + DIRTY, BGD = gfx.dirty, self.last_background + for rect, vel, col in self.stars[self.odd][numstars:self.numstars]: + DIRTY(BGD(rect)) + except: + print Exception self.numstars = numstars #print 'STAR:', numstars, fps, change