From 3c55b0e9d12662a70ae5808828004899cd714558 Mon Sep 17 00:00:00 2001 From: iou1name Date: Thu, 5 Jul 2018 06:58:12 -0400 Subject: [PATCH] timeout exception for url titles --- modules/url.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/url.py b/modules/url.py index 3951d7c..54d4650 100755 --- a/modules/url.py +++ b/modules/url.py @@ -36,7 +36,8 @@ def title_auto(bot, trigger): continue try: res = requests.get(url, headers=HEADERS, verify=True, timeout=10) - except requests.exceptions.ConnectionError: + except (requests.exceptions.ConnectionError, + requests.execeptions.ReadTimeout): continue try: res.raise_for_status()