  """
   This module contains useful utilities for GeoDjango.
  """
  from contextlib import suppress
  
  from django.contrib.gis.utils.ogrinfo import ogrinfo  # NOQA
  from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect  # NOQA
  from django.contrib.gis.utils.srs import add_srs_entry  # NOQA
  from django.core.exceptions import ImproperlyConfigured
  
 
</s> remove with suppress(ImproperlyConfigured):
 </s> add try: </s> remove from contextlib import suppress

 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove with suppress(ImportError):
 </s> add try: </s> remove from contextlib import suppress
 </s> add 
  """
   This module contains useful utilities for GeoDjango.
  """


  from django.contrib.gis.utils.ogrinfo import ogrinfo  # NOQA
  from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect  # NOQA
  from django.contrib.gis.utils.srs import add_srs_entry  # NOQA
  from django.core.exceptions import ImproperlyConfigured
  
keep keep keep 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/gis/utils/__init__.py