          if isinstance(value, datetime.datetime):
              return self.enforce_timezone(value)
  
          for input_format in input_formats:
              if input_format.lower() == ISO_8601:
                  try:
                      parsed = parse_datetime(value)
                      if parsed is not None:
                          return self.enforce_timezone(parsed)
                  except (ValueError, TypeError):
                      pass
 
</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) </s> remove                 try:
 </s> add                 with contextlib.suppress(TypeError): </s> remove                 except TypeError:
                    pass

 </s> add  </s> remove             except Exception:
                pass
 </s> add  </s> remove             try:
 </s> add             with contextlib.suppress(Exception):
            with contextlib.suppress(ValueError, TypeError):
                if input_format.lower() == ISO_8601:
          if isinstance(value, datetime.datetime):
              return self.enforce_timezone(value)
  
          for input_format in input_formats:
            with contextlib.suppress(ValueError, TypeError):
                if input_format.lower() == ISO_8601:
            with contextlib.suppress(ValueError, TypeError):
                if input_format.lower() == ISO_8601:
                      parsed = parse_datetime(value)
                      if parsed is not None:
                          return self.enforce_timezone(parsed)
                  except (ValueError, TypeError):
                      pass
keep keep keep keep replace replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/fields.py