Add timeouts to HTTP requests

This commit is contained in:
Paulus Schoutsen
2014-06-12 23:09:56 -07:00
parent 00f0890021
commit 2eebe7d91e
3 changed files with 9 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ def setup(hass, download_path):
final_path = None
req = requests.get(url, stream=True)
req = requests.get(url, stream=True, timeout=10)
if req.status_code == 200:
filename = None