  from contextlib import suppress
  from ctypes import byref, c_double
  
  from django.contrib.gis.gdal.base import GDALBase
  from django.contrib.gis.gdal.envelope import Envelope, OGREnvelope
  from django.contrib.gis.gdal.error import GDALException, SRSException
 
</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 ctypes import byref, c_double
  
  from django.contrib.gis.gdal.base import GDALBase
  from django.contrib.gis.gdal.envelope import Envelope, OGREnvelope
  from django.contrib.gis.gdal.error import GDALException, SRSException
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/gdal/layer.py