Unverified Commit 369eabed authored by TheTechRobo's avatar TheTechRobo Committed by GitHub
Browse files

Add default timeout for all requests

That way even if I forget to add one it's fine:tm:.
parent 20ffb1cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ class YouTubeResponse(JSONDataclass):
        keys = []
        services = cls._get_services()
        coroutines = []
        async with aiohttp.ClientSession() as session:
        async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=20)) as session:
            svcs = {}
            for service in services:
                svcs[service.__name__] = service.getName()