          }
  
      def get_page_size(self, request):
          if self.page_size_query_param:
              try:
                  return _positive_int(
                      request.query_params[self.page_size_query_param],
                      strict=True,
                      cutoff=self.max_page_size
                  )
 
</s> remove             try:
 </s> add             with contextlib.suppress(KeyError, ValueError): </s> remove             try:
 </s> add             with contextlib.suppress(KeyError, ValueError): </s> remove             except (KeyError, ValueError):
                pass

 </s> add  </s> remove             except (KeyError, ValueError):
                pass

 </s> add  </s> remove             except (KeyError, ValueError):
                pass

 </s> add 
            with contextlib.suppress(KeyError, ValueError):
          }
  
      def get_page_size(self, request):
          if self.page_size_query_param:
            with contextlib.suppress(KeyError, ValueError):
                  return _positive_int(
                      request.query_params[self.page_size_query_param],
                      strict=True,
                      cutoff=self.max_page_size
                  )
keep keep keep keep replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/pagination.py