From c4307423c7c2c6de889f649ef2746dfb7b2f1f73 Mon Sep 17 00:00:00 2001 From: phixxy Date: Mon, 17 Jul 2023 17:44:23 -0700 Subject: [PATCH] Added the 30 sec timeout for aiohttp --- sparkytron3000.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index 017277c..079d7e6 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -348,7 +348,7 @@ async def task_loop(): await bot_stuff.send("All daily tasks successfully ran!") async def create_session(): - return aiohttp.ClientSession() + return aiohttp.ClientSession(timeout=30) async def close_session(session): await session.close()