Skip to content

Commit

Permalink
blacked
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Jun 20, 2024
1 parent 944bbe8 commit bc2c315
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cloudcheck/providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion cloudcheck/providers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc2c315

Please sign in to comment.