gdal exceptions don't work