From bc2c31521e5d147e6408f8f38d317c5efa2ffa3e Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Thu, 20 Jun 2024 17:19:06 -0400 Subject: [PATCH] blacked --- cloudcheck/providers/__init__.py | 4 +++- cloudcheck/providers/base.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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,