          except NoReverseMatch:
              try:
                  # Next, try for the "global" sitemap URL.
                  sitemap_url = reverse('django.contrib.sitemaps.views.sitemap')
  
      if sitemap_url is None:
          raise SitemapNotFound("You didn't provide a sitemap_url, and the sitemap URL couldn't be auto-detected.")
  
      Site = django_apps.get_model('sites.Site')
 
</s> remove             with suppress(NoReverseMatch):
 </s> add             try: </s> remove                 with suppress(Site.DoesNotExist):
 </s> add                 try: </s> remove             with suppress(NoReverseMatch):
 </s> add             try:
            except NoReverseMatch:
                pass
          except NoReverseMatch:
              try:
                  # Next, try for the "global" sitemap URL.
                  sitemap_url = reverse('django.contrib.sitemaps.views.sitemap')
            except NoReverseMatch:
                pass
  
      if sitemap_url is None:
          raise SitemapNotFound("You didn't provide a sitemap_url, and the sitemap URL couldn't be auto-detected.")
  
      Site = django_apps.get_model('sites.Site')
keep keep keep add 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/contrib/sitemaps/__init__.py