openstenoproject / plover_plugins_manager

Plugins manager for Plover
3 stars 7 forks source link

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

Open silikeite opened 3 months ago

silikeite commented 3 months ago

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):