Skip to content

Commit 8eebe34

Browse files
global attachment download request timeout is set to 10 min
1 parent cd3cba8 commit 8eebe34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/attachment_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def download_attachment(self, url: str):
134134

135135
headers = RequestFormatter.add_api_key_to_headers({})
136136

137-
with RequestFormatter.request("get", url, stream=True, verify=False,**headers) as r:
137+
with RequestFormatter.request("get", url, stream=True, timeout=600,**headers) as r:
138138
r.raise_for_status()
139139
with open(path_to_downloaded_attachment, 'wb') as f:
140140
for chunk in r.iter_content(chunk_size=8192):

0 commit comments

Comments
 (0)