Up timeout to 5s
This commit is contained in:
parent
179ff85f4c
commit
ff2b384579
|
@ -123,7 +123,7 @@ def handle_message(*, prefix, message, nick, channel, irc):
|
|||
if possible_titles_left == 0: break
|
||||
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout = 1) as response:
|
||||
with urllib.request.urlopen(url, timeout = 5) as response:
|
||||
if response.info().get_content_type() == 'text/html':
|
||||
# First 4KiB of a page should be enough for any <title>
|
||||
# Turns out it's not, so download 64KiB
|
||||
|
|
Loading…
Reference in New Issue