                      request.query_params[self.page_size_query_param],
                      strict=True,
                      cutoff=self.max_page_size
                  )
              except (KeyError, ValueError):
                  pass
  
          return self.page_size
  
      def get_next_link(self):
          if not self.page.has_next():
              return None
 
</s> remove             except (KeyError, ValueError):
                pass

 </s> add  </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             try:
 </s> add             with contextlib.suppress(KeyError, ValueError):
                      request.query_params[self.page_size_query_param],
                      strict=True,
                      cutoff=self.max_page_size
                  )



          return self.page_size
  
      def get_next_link(self):
          if not self.page.has_next():
              return None
keep keep keep keep replace replace replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/pagination.py