              return parser_context['kwargs']['filename']
          except KeyError:
              pass
  
          try:
              meta = parser_context['request'].META
              disposition, params = parse_header_parameters(meta['HTTP_CONTENT_DISPOSITION'])
              if 'filename*' in params:
                  return params['filename*']
              else:
 
</s> remove             else:
                return params['filename']
        except (AttributeError, KeyError, ValueError):
            pass
 </s> add             return params['filename'] </s> remove         except KeyError:
            pass
 </s> add  </s> remove                 except TypeError:
                    pass

 </s> add  </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(KeyError):
        with contextlib.suppress(AttributeError, KeyError, ValueError):
              return parser_context['kwargs']['filename']
          except KeyError:
              pass
  
        with contextlib.suppress(AttributeError, KeyError, ValueError):
              meta = parser_context['request'].META
              disposition, params = parse_header_parameters(meta['HTTP_CONTENT_DISPOSITION'])
              if 'filename*' in params:
                  return params['filename*']
              else:
keep keep keep keep replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/parsers.py