def validate_number(self, number):
        try:
            number = int(number)
        except (TypeError, __HOLE__):
            raise PageNotAnInteger('That page number is not an integer')
        if number < 1:
            raise EmptyPage('That page number is less than 1')
        return number
dataset/ETHPy150Open CenterForOpenScience/scrapi/api/webview/pagination.py/PaginatorWithoutCount.validate_number