From 3c53cd0236a397a4069f84d12766e786cec3cb89 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Mon, 20 Apr 2020 08:54:33 -0400 Subject: [PATCH] Fix ssl_context --- rhasspy/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhasspy/core.py b/rhasspy/core.py index 849088d..b99b801 100755 --- a/rhasspy/core.py +++ b/rhasspy/core.py @@ -526,7 +526,7 @@ async def download_file(url, filename): self._logger.debug(status) os.makedirs(os.path.dirname(filename), exist_ok=True) - async with self.session.get(url, ssl=ssl_context) as response: + async with self.session.get(url, ssl=self.ssl_context) as response: with open(filename, "wb") as out_file: async for chunk in response.content.iter_chunked(chunk_size): out_file.write(chunk)