diff --git a/cloudcheck/providers/__init__.py b/cloudcheck/providers/__init__.py index bd520ea..ebd73bd 100644 --- a/cloudcheck/providers/__init__.py +++ b/cloudcheck/providers/__init__.py @@ -103,7 +103,9 @@ async def update(self, days=1, force=False): if self.last_updated > oldest_allowed and not force: return try: - async with httpx.AsyncClient(transport=httpx.AsyncHTTPTransport(verify=False)) as client: + async with httpx.AsyncClient( + transport=httpx.AsyncHTTPTransport(verify=False) + ) as client: response = await client.get(self.json_url) except Exception as e: error = e diff --git a/cloudcheck/providers/base.py b/cloudcheck/providers/base.py index 1d7bd0f..13d9ad7 100644 --- a/cloudcheck/providers/base.py +++ b/cloudcheck/providers/base.py @@ -82,7 +82,9 @@ async def update(self): self.last_updated = datetime.now() self.ranges = self.get_subnets() if self.ips_url: - async with httpx.AsyncClient(transport=httpx.AsyncHTTPTransport(verify=False)) as client: + async with httpx.AsyncClient( + transport=httpx.AsyncHTTPTransport(verify=False) + ) as client: response = await client.get( self.ips_url, follow_redirects=True,