Skip to content

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

@silikeite

Description

@silikeite

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions