|
|
@ -20,8 +20,8 @@ class BackendClient: |
|
|
|
async def pulse(self, exit_if_error = False): |
|
|
|
async with aiohttp.ClientSession(cookies={ |
|
|
|
"secretkey":self.secret_key}) as session: |
|
|
|
async with session.get(self.pulse_url, ssl=False) as response: |
|
|
|
try: |
|
|
|
async with session.get(self.pulse_url, ssl=False) as response: |
|
|
|
await response.text() |
|
|
|
self.up = True |
|
|
|
if not self.warn: |
|
|
@ -59,8 +59,8 @@ class BackendClient: |
|
|
|
|
|
|
|
async def prices(self, exit_if_error = False): |
|
|
|
async with aiohttp.ClientSession() as session: |
|
|
|
async with session.get(self.vip_url) as response: |
|
|
|
try: |
|
|
|
async with session.get(self.vip_url) as response: |
|
|
|
return await response.json() |
|
|
|
except: |
|
|
|
traceback.print_exc() |
|
|
|