Bump pylint from 2.14.5 to 2.15.0 (#3746)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2022-08-31 17:01:36 +12:00 committed by GitHub
parent 71697df2b6
commit 2650441013
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View file

@ -146,7 +146,7 @@ def download_gfonts(value):
if path.is_file(): if path.is_file():
return value return value
try: try:
req = requests.get(url) req = requests.get(url, timeout=30)
req.raise_for_status() req.raise_for_status()
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
raise cv.Invalid( raise cv.Invalid(
@ -162,7 +162,7 @@ def download_gfonts(value):
ttf_url = match.group(1) ttf_url = match.group(1)
try: try:
req = requests.get(ttf_url) req = requests.get(ttf_url, timeout=30)
req.raise_for_status() req.raise_for_status()
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
raise cv.Invalid(f"Could not download ttf file for {name} ({ttf_url}): {e}") raise cv.Invalid(f"Could not download ttf file for {name} ({ttf_url}): {e}")

View file

@ -73,7 +73,7 @@ def get_firmware(value):
def dl(url): def dl(url):
try: try:
req = requests.get(url) req = requests.get(url, timeout=30)
req.raise_for_status() req.raise_for_status()
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
raise cv.Invalid(f"Could not download firmware file ({url}): {e}") raise cv.Invalid(f"Could not download firmware file ({url}): {e}")

View file

@ -823,7 +823,9 @@ class LoginHandler(BaseHandler):
"password": self.get_argument("password", ""), "password": self.get_argument("password", ""),
} }
try: try:
req = requests.post("http://supervisor/auth", headers=headers, data=data) req = requests.post(
"http://supervisor/auth", headers=headers, data=data, timeout=30
)
if req.status_code == 200: if req.status_code == 200:
self.set_secure_cookie("authenticated", cookie_authenticated_yes) self.set_secure_cookie("authenticated", cookie_authenticated_yes)
self.redirect("/") self.redirect("/")

View file

@ -1,4 +1,4 @@
pylint==2.14.5 pylint==2.15.0
flake8==5.0.4 flake8==5.0.4
black==22.6.0 # also change in .pre-commit-config.yaml when updating black==22.6.0 # also change in .pre-commit-config.yaml when updating
pyupgrade==2.37.3 # also change in .pre-commit-config.yaml when updating pyupgrade==2.37.3 # also change in .pre-commit-config.yaml when updating