From 68d11574950416fe26122984780e8d28ffb99dad Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 13 Nov 2019 17:58:47 -0500 Subject: [PATCH] catch the right error, boris --- lbry/scripts/wallet_server_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/scripts/wallet_server_monitor.py b/lbry/scripts/wallet_server_monitor.py index 4b98814ef..665e47cb7 100644 --- a/lbry/scripts/wallet_server_monitor.py +++ b/lbry/scripts/wallet_server_monitor.py @@ -92,7 +92,7 @@ async def monitor(db, server): async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(10)) as session: try: ws = await session.ws_connect(server) - except (aiohttp.ClientConnectorError, asyncio.TimeoutError): + except (aiohttp.ClientConnectionError, asyncio.TimeoutError): if first_attempt: print(f"failed connecting to {server}") await boris_says(random.choice([ @@ -130,7 +130,7 @@ async def monitor(db, server): await handle_analytics_event(c, event, server) db.commit() - except (aiohttp.ClientConnectorError, asyncio.TimeoutError): + except (aiohttp.ClientConnectionError, asyncio.TimeoutError): await boris_says(random.choice([ f" Guys, we have a problem! Nobody home at {server}. Will check on it again in {delay} seconds.", f" Something wrong with {server}. I think dead. Will poke it again in {delay} seconds.",