              # If the media type looks like 'application/json; indent=4',
              # then pretty print the result.
              # 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.
 
</s> remove             except (KeyError, ValueError, TypeError):
                pass

 </s> add  </s> remove             except FieldDoesNotExist:
                pass
 </s> add  </s> remove             try:
 </s> add             with contextlib.suppress(AttributeError): </s> remove             except AttributeError:
                pass

 </s> add  </s> remove         except TypeError:  # Input is an unhashable type
            pass
 </s> add 
            with contextlib.suppress(KeyError, ValueError, TypeError):
              # If the media type looks like 'application/json; indent=4',
              # then pretty print the result.
              # Note that we coerce `indent=0` into `indent=None`.
              base_media_type, params = parse_header_parameters(accepted_media_type)
            with contextlib.suppress(KeyError, ValueError, TypeError):
                  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.
keep keep keep keep replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/renderers.py