mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-11 06:32:52 +00:00
Added timeout to update check API call
This commit is contained in:
parent
2782551c9b
commit
ad151ff139
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Reference in a new issue