Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CachedSession.remove_expired_responses() removed in requests-cache 1.2.0 #24

Open
silikeite opened this issue Aug 26, 2024 · 1 comment

Comments

@silikeite
Copy link

Causes a Qt GUI error and prevents the plugin manager GUI from loading.

bpierre Benoit Pierre from AUR suggested this change:

--- i/plover_plugins_manager/requests.py
+++ w/plover_plugins_manager/requests.py
@@ -18,7 +18,7 @@ class CachedSession(CachedSession):
         super().__init__(cache_name=CACHE_NAME,
                          backend='sqlite',
                          expire_after=600)
-        self.remove_expired_responses()
+        self.cache.delete(expired=True)


 class CachedFuturesSession(FuturesSession):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@silikeite and others