diff --git a/botcmd.py b/botcmd.py index c2c4c18..ea7c68d 100644 --- a/botcmd.py +++ b/botcmd.py @@ -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 # Turns out it's not, so download 64KiB