From 154b12ef5b04c976a8861a048d1830cafe271a99 Mon Sep 17 00:00:00 2001 From: Wim de With Date: Tue, 30 Apr 2024 19:53:34 +0200 Subject: [PATCH] Add timeout to update check API call --- bazarr/app/check_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.")