Skip to content

Commit

Permalink
Added timeout to update check API call
Browse files Browse the repository at this point in the history
  • Loading branch information
wfdewith committed May 1, 2024
1 parent 2782551 commit ad151ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazarr/app/check_update.py
Expand Up @@ -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.")
Expand Down

0 comments on commit ad151ff

Please sign in to comment.