              # Note that we coerce `indent=0` into `indent=None`.
              base_media_type, params = parse_header_parameters(accepted_media_type)
              try:
                  return zero_as_none(max(min(int(params['indent']), 8), 0))
              except (KeyError, ValueError, TypeError):
                  pass
  
          # If 'indent' is provided in the context, then pretty print the result.
          # E.g. If we're being called by the BrowsableAPIRenderer.
          return renderer_context.get('indent', None)
  
      def render(self, data, accepted_media_type=None, renderer_context=None):
 
</s> remove             try:
 </s> add             with contextlib.suppress(KeyError, ValueError, TypeError): </s> remove             except FieldDoesNotExist:
                pass
 </s> add  </s> remove             except AttributeError:
                pass

 </s> add  </s> remove             try:
 </s> add             with contextlib.suppress(AttributeError): </s> remove                 except (ValueError, TypeError):
                    pass
            else:
                try:
                    parsed = self.datetime_parser(value, input_format)
                    return self.enforce_timezone(parsed)
                except (ValueError, TypeError):
                    pass
 </s> add                 parsed = self.datetime_parser(value, input_format)
                return self.enforce_timezone(parsed)
              # Note that we coerce `indent=0` into `indent=None`.
              base_media_type, params = parse_header_parameters(accepted_media_type)
              try:
                  return zero_as_none(max(min(int(params['indent']), 8), 0))



          # If 'indent' is provided in the context, then pretty print the result.
          # E.g. If we're being called by the BrowsableAPIRenderer.
          return renderer_context.get('indent', None)
  
      def render(self, data, accepted_media_type=None, renderer_context=None):
keep keep keep keep replace replace replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/renderers.py