mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 16:52:06 +00:00
Removed unused variables in check_releases function.
This commit is contained in:
parent
a5852e6052
commit
144db064cd
1 changed files with 4 additions and 4 deletions
|
@ -21,13 +21,13 @@ def check_releases():
|
|||
logging.debug('BAZARR getting releases from Github: {}'.format(url_releases))
|
||||
r = requests.get(url_releases, allow_redirects=True)
|
||||
r.raise_for_status()
|
||||
except requests.exceptions.HTTPError as errh:
|
||||
except requests.exceptions.HTTPError:
|
||||
logging.exception("Error trying to get releases from Github. Http error.")
|
||||
except requests.exceptions.ConnectionError as errc:
|
||||
except requests.exceptions.ConnectionError:
|
||||
logging.exception("Error trying to get releases from Github. Connection Error.")
|
||||
except requests.exceptions.Timeout as errt:
|
||||
except requests.exceptions.Timeout:
|
||||
logging.exception("Error trying to get releases from Github. Timeout Error.")
|
||||
except requests.exceptions.RequestException as err:
|
||||
except requests.exceptions.RequestException:
|
||||
logging.exception("Error trying to get releases from Github.")
|
||||
else:
|
||||
for release in r.json():
|
||||
|
|
Loading…
Reference in a new issue