def _validate_spacecount(self, spacecount):
        try:
            spacecount = int(spacecount)
            if spacecount < 2:
                raise ValueError
        except ValueError:
            raise DataError('--spacecount must be an integer greater than 1.')
        return spacecount
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/tidy.py/TidyCommandLine._validate_spacecount/original