          Return the admin URL to edit the object represented by this log entry.
          """
          if self.content_type and self.object_id:
              url_name = 'admin:%s_%s_change' % (self.content_type.app_label, self.content_type.model)
              with suppress(NoReverseMatch):
                  return reverse(url_name, args=(quote(self.object_id),))
          return None
 
</s> remove             with suppress(NoReverseMatch):
 </s> add             try: </s> remove             with suppress(Exception):
 </s> add             try: </s> remove             with suppress(ImportError):
 </s> add             try: </s> remove                 with suppress(NoReverseMatch):
 </s> add                 try:
            try:
          Return the admin URL to edit the object represented by this log entry.
          """
          if self.content_type and self.object_id:
              url_name = 'admin:%s_%s_change' % (self.content_type.app_label, self.content_type.model)
            try:
                  return reverse(url_name, args=(quote(self.object_id),))
          return None
keep keep keep keep replace keep keep
 Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."

This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better. 
django/contrib/admin/models.py