From 800509e1408990fc694128b244acc1ecd7cd4f7a Mon Sep 17 00:00:00 2001 From: Chill Date: Wed, 24 Jan 2024 19:03:17 +0800 Subject: [PATCH] update timeout --- app_common/models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_common/models/base.py b/app_common/models/base.py index 14f8f7b6..0f2e35a0 100644 --- a/app_common/models/base.py +++ b/app_common/models/base.py @@ -155,7 +155,7 @@ def get_image_url2attachment(url): try: if url.startswith('//'): url = 'https:%s' % url - response = requests.get(url, timeout=30) + response = requests.get(url, timeout=90) except Exception as e: return None, None # 返回这个图片的base64编码