      }:
          from django.template import engines
          try:
              del engines.templates
          engines._templates = None
          engines._engines = {}
          from django.template.engine import Engine
          Engine.get_default.cache_clear()
          from django.forms.renderers import get_default_renderer
 
</s> remove         with suppress(AttributeError):
 </s> add         try: </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 
        except AttributeError:
            pass
      }:
          from django.template import engines
          try:
              del engines.templates
        except AttributeError:
            pass
          engines._templates = None
          engines._engines = {}
          from django.template.engine import Engine
          Engine.get_default.cache_clear()
          from django.forms.renderers import get_default_renderer
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/test/signals.py