          if number > self.num_pages:
              if number == 1 and self.allow_empty_first_page:
                  pass
              else:
                  raise EmptyPage('That page contains no results')
          return number
  
      def page(self, number):
          """
          Returns a Page object for the given 1-based page number.
 
</s> remove             raise EmptyPage('That page number is less than 1')
 </s> add             raise EmptyPage(_('That page number is less than 1')) </s> remove             raise PageNotAnInteger('That page number is not an integer')
 </s> add             raise PageNotAnInteger(_('That page number is not an integer'))
                raise EmptyPage(_('That page contains no results'))
          if number > self.num_pages:
              if number == 1 and self.allow_empty_first_page:
                  pass
              else:
                raise EmptyPage(_('That page contains no results'))
          return number
  
      def page(self, number):
          """
          Returns a Page object for the given 1-based page number.
keep keep keep keep replace keep keep keep keep keep
 Refs #27505 -- Made Paginator's exception messsages translatable. 
django/core/paginator.py