  REST framework also provides an HTML renderer that renders the browsable API.
  """
  
  import base64
  from collections import OrderedDict
  from urllib import parse
  
  from django import forms
  from django.conf import settings
  from django.core.exceptions import ImproperlyConfigured
 
</s> remove         try:
 </s> add         with contextlib.suppress(KeyError):
import contextlib
  REST framework also provides an HTML renderer that renders the browsable API.
  """
  
  import base64
import contextlib
  from collections import OrderedDict
  from urllib import parse
  
  from django import forms
  from django.conf import settings
  from django.core.exceptions import ImproperlyConfigured
keep keep keep add keep keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/renderers.py