      if kwargs['setting'] in {'TIME_ZONE', 'USE_TZ'}:
          for conn in connections.all():
              with suppress(AttributeError):
                  del conn.timezone
              with suppress(AttributeError):
                  del conn.timezone_name
              conn.ensure_timezone()
  
  
  @receiver(setting_changed)
 
</s> remove             with suppress(AttributeError):
 </s> add             try: </s> remove     with suppress(AttributeError):
 </s> add     try: </s> remove         with suppress(KeyError):
 </s> add         try: </s> remove         with suppress(AttributeError):
 </s> add         try:
            except AttributeError:
                pass
            try:
      if kwargs['setting'] in {'TIME_ZONE', 'USE_TZ'}:
          for conn in connections.all():
              with suppress(AttributeError):
                  del conn.timezone
            except AttributeError:
                pass
            try:
                  del conn.timezone_name
              conn.ensure_timezone()
  
  
  @receiver(setting_changed)
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/test/signals.py