diff --git a/src/pygeoprocessing/geoprocessing_core.pyx b/src/pygeoprocessing/geoprocessing_core.pyx index 03332598..a83822b1 100644 --- a/src/pygeoprocessing/geoprocessing_core.pyx +++ b/src/pygeoprocessing/geoprocessing_core.pyx @@ -1,3 +1,4 @@ +import functools import logging import multiprocessing import os @@ -71,6 +72,7 @@ def gdal_use_exceptions(func): Returns: Wrapper function that calls ``func`` with GDAL exceptions enabled """ + @functools.wraps(func) def wrapper(*args, **kwargs): with GDALUseExceptions(): return func(*args, **kwargs)