timeout exception for url titles

This commit is contained in:
iou1name 2018-07-05 06:58:12 -04:00
parent 72e432c46c
commit 3c55b0e9d1

View File

@ -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()