From 689c633e92e09a4c8b8bd19c234b072bd104d10f Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 29 Oct 2023 12:32:33 +0100 Subject: [PATCH] Web: Fix crash on socket.timeout on snarfed URLs --- plugins/Web/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 9deb19fda..b8146aeb7 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -173,8 +173,9 @@ class Web(callbacks.PluginRegexp): if raiseErrors: irc.error(_('Connection to %s timed out') % url, Raise=True) else: - selg.log.info('Web plugins TitleSnarfer: URL <%s> timed out', + self.log.info('Web plugins TitleSnarfer: URL <%s> timed out', url) + return except Exception as e: if raiseErrors: irc.error(_('That URL raised <' + str(e)) + '>',