Web: Fix crash on socket.timeout on snarfed URLs

This commit is contained in:
Valentin Lorentz 2023-10-29 12:32:33 +01:00
parent 3f9ab4b89c
commit 689c633e92

View File

@ -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)) + '>',