                          break
  
          # Fall back to the current site (if possible).
          if object_domain is None:
              with suppress(Site.DoesNotExist):
                  object_domain = Site.objects.get_current(request).domain
  
      else:
          # Fall back to the current request's site.
          object_domain = RequestSite(request).domain
 
</s> remove                 with suppress(IndexError):
 </s> add                 try: </s> remove                 with suppress(Site.DoesNotExist):
 </s> add                 try:
            try:
                          break
  
          # Fall back to the current site (if possible).
          if object_domain is None:
            try:
                  object_domain = Site.objects.get_current(request).domain
  
      else:
          # Fall back to the current request's site.
          object_domain = RequestSite(request).domain
keep keep keep keep replace 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/contenttypes/views.py