fix(conf): 还原到以前的配置
This commit is contained in:
7
main.py
7
main.py
@@ -20,7 +20,7 @@ import random
|
||||
import ddddocr
|
||||
from datetime import datetime
|
||||
from dotenv import load_dotenv
|
||||
from lxml import etree # type: ignore
|
||||
from lxml import etree # type: ignore
|
||||
from threading import Thread
|
||||
from requests.adapters import HTTPAdapter
|
||||
from urllib3.util.retry import Retry
|
||||
@@ -28,8 +28,9 @@ import warnings
|
||||
|
||||
# 修复 ANTIALIAS 错误 - 添加猴子补丁
|
||||
import PIL.Image
|
||||
if not hasattr(PIL.Image, 'ANTIALIAS'):
|
||||
PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore
|
||||
|
||||
if not hasattr(PIL.Image, "ANTIALIAS"):
|
||||
PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore
|
||||
|
||||
warnings.filterwarnings("ignore")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user