update timeout

This commit is contained in:
Chill
2024-01-24 19:03:17 +08:00
parent 929a1a24d4
commit 800509e140

View File

@@ -155,7 +155,7 @@ def get_image_url2attachment(url):
try: try:
if url.startswith('//'): if url.startswith('//'):
url = 'https:%s' % url url = 'https:%s' % url
response = requests.get(url, timeout=30) response = requests.get(url, timeout=90)
except Exception as e: except Exception as e:
return None, None return None, None
# 返回这个图片的base64编码 # 返回这个图片的base64编码