                  # Model fields will always have a simple source mapping,
                  # they can't be nested attribute lookups.
                  continue
  
              try:
                  field = model._meta.get_field(source)
                  if isinstance(field, DjangoModelField):
                      model_fields[source] = field
              except FieldDoesNotExist:
                  pass
 
</s> remove             except FieldDoesNotExist:
                pass
 </s> add  </s> remove             try:
 </s> add             with contextlib.suppress(TypeError, ValueError): </s> remove             except AttributeError:
                pass

 </s> add  </s> remove             try:
 </s> add             with contextlib.suppress(AttributeError): </s> remove             try:
 </s> add             with contextlib.suppress(Exception):
            with contextlib.suppress(FieldDoesNotExist):
                  # Model fields will always have a simple source mapping,
                  # they can't be nested attribute lookups.
                  continue
  
            with contextlib.suppress(FieldDoesNotExist):
                  field = model._meta.get_field(source)
                  if isinstance(field, DjangoModelField):
                      model_fields[source] = field
              except FieldDoesNotExist:
                  pass
keep keep keep keep replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/serializers.py