      """
      try:
          del _prefixes.value
  
  
  def set_urlconf(urlconf_name):
      """
      Set the URLconf for the current thread (overriding the default one in
      settings). If urlconf_name is None, revert back to the default.
 
</s> remove     with suppress(AttributeError):
 </s> add     try: </s> remove             with suppress(Site.DoesNotExist):
 </s> add             try: </s> remove             with suppress(GDALException):
 </s> add             try:
    except AttributeError:
        pass
      """
      try:
          del _prefixes.value
    except AttributeError:
        pass
  
  
  def set_urlconf(urlconf_name):
      """
      Set the URLconf for the current thread (overriding the default one in
      settings). If urlconf_name is None, revert back to the default.
keep keep add keep keep keep keep keep keep
 Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."

This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better. 
django/urls/base.py