mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update timeout
This commit is contained in:
@@ -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编码
|
||||||
|
|||||||
Reference in New Issue
Block a user