Skip to content

Commit

Permalink
refactor code to use PLATFORM_WIN
Browse files Browse the repository at this point in the history
  • Loading branch information
iPablo committed Apr 8, 2024
1 parent da97387 commit 76ed57e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions css_browserhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,7 @@ async def health_check(self):
while True:
await asyncio.sleep(3)
try:
if PLATFORM_WIN:
trust_env = True
else:
trust_env = False
async with aiohttp.ClientSession(trust_env=trust_env) as web:
async with aiohttp.ClientSession(trust_env=PLATFORM_WIN) as web:
res = await web.get(f"http://127.0.0.1:8080/json/version", timeout=3)

if (res.status != 200):
Expand Down

0 comments on commit 76ed57e

Please sign in to comment.