fix : longer timeout (20s)

This commit is contained in:
apsntian
2024-04-18 15:23:58 +09:00
parent aae783a2e1
commit c2db34de1d
+1 -1
View File
@@ -67,7 +67,7 @@ def cached_image_load_from_url(url: str):
etag = cache_metadata[url_hash]
header['If-None-Match'] = etag
response = requests.get(url, timeout = 5, headers=header)
response = requests.get(url, timeout = 20, headers=header)
if response.status_code == 304:
print("yeah cached!")