diff --git a/pygbif/caching.py b/pygbif/caching.py index 43ef2f7..50b2b4d 100644 --- a/pygbif/caching.py +++ b/pygbif/caching.py @@ -83,7 +83,7 @@ def caching( requests_cache.install_cache( cache_name=CACHE_NAME, backend=backend, expire_after=expire_after ) - requests_cache.delete(expired=True)() + requests_cache.delete(expired=True) cache_settings = { "cache": cache, @@ -93,4 +93,4 @@ def caching( "allowable_codes": allowable_codes, "allowable_methods": allowable_methods, } - return cache_settings \ No newline at end of file + return cache_settings