mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 05:02:01 +00:00
Fix log spam from injection related errors
This commit is contained in:
+5
-2
@@ -5,6 +5,7 @@ from logging import debug, getLogger
|
|||||||
from traceback import format_exc
|
from traceback import format_exc
|
||||||
|
|
||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
|
from aiohttp.client_exceptions import ClientConnectorError
|
||||||
|
|
||||||
BASE_ADDRESS = "http://localhost:8080"
|
BASE_ADDRESS = "http://localhost:8080"
|
||||||
|
|
||||||
@@ -65,11 +66,13 @@ async def get_tabs():
|
|||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
res = await web.get(f"{BASE_ADDRESS}/json")
|
res = await web.get(f"{BASE_ADDRESS}/json")
|
||||||
break
|
except ClientConnectorError:
|
||||||
except:
|
logger.debug("ClientConnectorError excepted.")
|
||||||
logger.debug("Steam isn't available yet. Wait for a moment...")
|
logger.debug("Steam isn't available yet. Wait for a moment...")
|
||||||
logger.debug(format_exc())
|
logger.debug(format_exc())
|
||||||
await sleep(5)
|
await sleep(5)
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
if res.status == 200:
|
if res.status == 200:
|
||||||
r = await res.json()
|
r = await res.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user