summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWim de With <[email protected]>2024-05-01 12:13:55 +0200
committerGitHub <[email protected]>2024-05-01 06:13:55 -0400
commitad151ff1393656f71d9c9558d8d86c1d23a1429c (patch)
tree0c0ec74f830551296374a443e1a2423dbb1e4d30
parent2782551c9bd5418e6fe0484a4002b4a350869917 (diff)
downloadbazarr-ad151ff1393656f71d9c9558d8d86c1d23a1429c.tar.gz
bazarr-ad151ff1393656f71d9c9558d8d86c1d23a1429c.zip
Added timeout to update check API callv1.4.3-beta.29
-rw-r--r--bazarr/app/check_update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bazarr/app/check_update.py b/bazarr/app/check_update.py
index c5bfdeb68..4a8f64868 100644
--- a/bazarr/app/check_update.py
+++ b/bazarr/app/check_update.py
@@ -25,7 +25,7 @@ def check_releases():
url_releases = 'https://api.github.com/repos/morpheus65535/Bazarr/releases?per_page=100'
try:
logging.debug(f'BAZARR getting releases from Github: {url_releases}')
- r = requests.get(url_releases, allow_redirects=True)
+ r = requests.get(url_releases, allow_redirects=True, timeout=15)
r.raise_for_status()
except requests.exceptions.HTTPError:
logging.exception("Error trying to get releases from Github. Http error.")