From 913cd815756cdace6a7a32aa428857dc147f0dd6 Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 4 Oct 2018 10:59:52 -0400 Subject: [PATCH] Deprecated method --- sayurl/sayurl.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sayurl/sayurl.py b/sayurl/sayurl.py index 9078bf2..d56720e 100644 --- a/sayurl/sayurl.py +++ b/sayurl/sayurl.py @@ -10,10 +10,9 @@ Cog: Any = getattr(commands, "Cog", object) async def fetch_url(session, url): - with aiohttp.Timeout(20): - async with session.get(url) as response: - assert response.status == 200 - return await response.text() + async with session.get(url) as response: + assert response.status == 200 + return await response.text() class SayUrl(Cog):