From ff2b3845792f440f6786ef59377328e1bca5e8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 22 Oct 2018 05:50:48 +0300 Subject: [PATCH] Up timeout to 5s --- botcmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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