diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-08-17 12:57:41 -0700 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-08-17 12:57:58 -0700 |
| commit | 59038f65acf4676a01c8ce7fc134c33b954b94e2 (patch) | |
| tree | 679d347bd93492e9ad534fa7767a97440c78db04 /backend/injector.py | |
| parent | 5960c11d60bccb732ead19fdb0b4547806f70f70 (diff) | |
| download | decky-loader-59038f65acf4676a01c8ce7fc134c33b954b94e2.tar.gz decky-loader-59038f65acf4676a01c8ce7fc134c33b954b94e2.zip | |
Fix log spam from injection related errorsv2.0.5-pre11
Diffstat (limited to 'backend/injector.py')
| -rw-r--r-- | backend/injector.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/injector.py b/backend/injector.py index 5738cba5..8a504b3f 100644 --- a/backend/injector.py +++ b/backend/injector.py @@ -5,6 +5,7 @@ from logging import debug, getLogger from traceback import format_exc from aiohttp import ClientSession +from aiohttp.client_exceptions import ClientConnectorError BASE_ADDRESS = "http://localhost:8080" @@ -65,11 +66,13 @@ async def get_tabs(): while True: try: res = await web.get(f"{BASE_ADDRESS}/json") - break - except: + except ClientConnectorError: + logger.debug("ClientConnectorError excepted.") logger.debug("Steam isn't available yet. Wait for a moment...") logger.debug(format_exc()) await sleep(5) + else: + break if res.status == 200: r = await res.json() |
