From b04efc10dc61c0707412946460cdba0e1c4310da Mon Sep 17 00:00:00 2001 From: Frisk Date: Wed, 29 Jul 2020 01:33:14 +0200 Subject: [PATCH] Fixed other issue with timeout error on python 3.7 --- src/wiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki.py b/src/wiki.py index 3343108..7486e27 100644 --- a/src/wiki.py +++ b/src/wiki.py @@ -44,7 +44,7 @@ class Wiki: "rclimit": amount, "rctype": "edit|new|log|categorize", "siprop": "namespaces|general"} try: response = await session.get(url_path, params=params) - except (aiohttp.ClientConnectionError, aiohttp.ServerTimeoutError, asyncio.exceptions.TimeoutError): + except (aiohttp.ClientConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError): logger.exception("A connection error occurred while requesting {}".format(url_path)) raise WikiServerError return response