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