Skip to content

Commit 1fce2cd

Browse files
committed
add timeout
1 parent 626d4f4 commit 1fce2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/custom_overlays.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def get_default_custom_overlay(self):
176176
network = self.ton.GetNetworkName()
177177
default_url = 'https://ton-blockchain.github.io/fallback_custom_overlays.json'
178178
url = self.ton.local.db.get('defaultCustomOverlaysUrl', default_url)
179-
resp = requests.get(url)
179+
resp = requests.get(url, timeout=3)
180180
if resp.status_code != 200:
181181
self.ton.local.add_log(f"Failed to get default custom overlays from {url}", "error")
182182
return None

0 commit comments

Comments
 (0)