  
  import codecs
  
  from django.conf import settings
  from django.core.files.uploadhandler import StopFutureHandlers
  from django.http import QueryDict
 
</s> remove             except (TypeError, ValueError):
                pass
 </s> add 
import contextlib
  
  import codecs
import contextlib
  
  from django.conf import settings
  from django.core.files.uploadhandler import StopFutureHandlers
  from django.http import QueryDict
keep add keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/parsers.py