Skip to content

Commit

Permalink
Web: Fix crash on socket.timeout on snarfed URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Oct 29, 2023
1 parent 3f9ab4b commit 689c633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Web/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ def getTitle(self, irc, url, raiseErrors, msg):
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)) + '>',
Expand Down

0 comments on commit 689c633

Please sign in to comment.