From 5433b26855ce8bc9470ee62c725892a62396e259 Mon Sep 17 00:00:00 2001 From: silikeite Date: Mon, 26 Aug 2024 14:45:55 +0800 Subject: [PATCH] Fix Qt GUI error with CachedSession remove_expired_responses --- plover_plugins_manager/requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plover_plugins_manager/requests.py b/plover_plugins_manager/requests.py index e0f3998..4f9f1f1 100644 --- a/plover_plugins_manager/requests.py +++ b/plover_plugins_manager/requests.py @@ -18,7 +18,7 @@ def __init__(self): super().__init__(cache_name=CACHE_NAME, backend='sqlite', expire_after=600) - self.remove_expired_responses() + self.cache.delete(expired=True) class CachedFuturesSession(FuturesSession):