  from contextlib import suppress
  
  from django.apps import apps
  from django.contrib.contenttypes.models import ContentType
  from django.contrib.sites.requests import RequestSite
  from django.core.exceptions import ObjectDoesNotExist
  from django.http import Http404, HttpResponseRedirect
 
</s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add 


  from django.apps import apps
  from django.contrib.contenttypes.models import ContentType
  from django.contrib.sites.requests import RequestSite
  from django.core.exceptions import ObjectDoesNotExist
  from django.http import Http404, HttpResponseRedirect
replace 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