Skip to content

Commit

Permalink
do not check if file exists before letting gdal open it. natcap#375
Browse files Browse the repository at this point in the history
  • Loading branch information
davemfish committed Mar 4, 2024
1 parent 254c7c8 commit e2bee91
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pygeoprocessing/geoprocessing.py
Expand Up @@ -3895,8 +3895,6 @@ def get_gis_type(path):
``pygeoprocessing.RASTER_TYPE``, or ``pygeoprocessing.VECTOR_TYPE``.
"""
if not os.path.exists(path):
raise ValueError(f"{path} does not exist.")
from pygeoprocessing import UNKNOWN_TYPE
gis_type = UNKNOWN_TYPE
gis_raster = gdal.OpenEx(path, gdal.OF_RASTER)
Expand Down

0 comments on commit e2bee91

Please sign in to comment.