From 350c9109ca2040b32689efc87fed7240d5b91346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=BC=E7=BE=BD?= Date: Fri, 2 Apr 2021 16:10:48 +0800 Subject: [PATCH] =?UTF-8?q?werkzeug.contrib=E5=B7=B2=E7=BB=8F=E5=9C=A81.0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=A2=AB=E7=A7=BB=E9=99=A4=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8cachelib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wechatsogou/filecache.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wechatsogou/filecache.py b/wechatsogou/filecache.py index 9810139..62cfea5 100644 --- a/wechatsogou/filecache.py +++ b/wechatsogou/filecache.py @@ -1,6 +1,9 @@ # -*- coding: utf-8 -*- -from werkzeug.contrib.cache import FileSystemCache +try: + from werkzeug.contrib.cache import FileSystemCache +except ImportError: + from cachelib import FileSystemCache class WechatCache(FileSystemCache):