Skip to content

Commit c18da6a

Browse files
committed
add timeout to archive blocks config request
1 parent 9fcf8ba commit c18da6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mytoninstaller/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def download_archive_from_ts(local):
224224
block_bags = []
225225
master_block_bags = []
226226

227-
blocks_config = requests.get(url).json()
227+
blocks_config = requests.get(url, timeout=3).json()
228228
for state in blocks_config['states']:
229229
if state['at_block'] > block_from:
230230
break

0 commit comments

Comments
 (0)