timeout exception for url titles
This commit is contained in:
parent
72e432c46c
commit
3c55b0e9d1
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user