From 12ab1df6eed0bc2d2b6a691a483a8a5dd47f1746 Mon Sep 17 00:00:00 2001 From: Cecilie Svenningsen <54532645+CecSve@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:44:37 +0100 Subject: [PATCH] Update caching.py removed the extra parentheses --- pygbif/caching.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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