Skip to content

Commit 689c633

Browse files
committed
Web: Fix crash on socket.timeout on snarfed URLs
1 parent 3f9ab4b commit 689c633

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/Web/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ def getTitle(self, irc, url, raiseErrors, msg):
173173
if raiseErrors:
174174
irc.error(_('Connection to %s timed out') % url, Raise=True)
175175
else:
176-
selg.log.info('Web plugins TitleSnarfer: URL <%s> timed out',
176+
self.log.info('Web plugins TitleSnarfer: URL <%s> timed out',
177177
url)
178+
return
178179
except Exception as e:
179180
if raiseErrors:
180181
irc.error(_('That URL raised <' + str(e)) + '>',

0 commit comments

Comments
 (0)