def solve(self, *args):
        try:
            solution = self.getSolution()
        except Exception as e:
            import traceback, sys
            txt = 'Error finding solution. Make sure your cube is configured legally and was input accurately.'
            print 'error:', e
            traceback.print_exc(file=sys.stdout)
            self.updateMessage(txt)
            self.redraw()
        else:
            if not self.showingPB:
                self.addMoves(solution, self.PLAYING)
                self.showingPB = True
                self.pbMin = len(solution) - len(self.moveList)
                self.pbMax = len(self.moveList)
                self.updateSol('With F as Red and U as Yellow: Solution: '+brief(solution))
            self.maxRot = 5
            self.timeBetweenRotations = 0
            self.timeUntilNextRotation = 0
dataset/ETHPy150Open bluquar/cubr/cube.py/Cube.solve/swapped operands of `-`