Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/predbat/futurerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def download_futurerate_data(self, url):

def download_futurerate_data_func(self, url):
try:
r = requests.get(url)
r = requests.get(url, timeout=120)
Comment thread
springfall2008 marked this conversation as resolved.
except Exception as e:
self.log("Warn: Error downloading futurerate data from URL {}, request exception {}".format(url, e))
self.record_status("Warn: Error downloading futurerate data from cloud", debug=url, had_errors=True)
Expand Down
2 changes: 1 addition & 1 deletion apps/predbat/octopus.py
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ def download_octopus_free_func(self, url):
Download octopus free session data directly from a URL, no caching.
"""
try:
r = requests.get(url)
r = requests.get(url, timeout=30)
except requests.exceptions.ConnectionError:
self.log("Warn: Octopus: Unable to download Octopus data from URL {} (ConnectionError)".format(url))
self.record_status("Warn: Unable to download Octopus free session data", debug=url, had_errors=True)
Comment thread
springfall2008 marked this conversation as resolved.
Expand Down
Loading