mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 04:39:26 +01:00
Web: Fix crash on socket.timeout on snarfed URLs
This commit is contained in:
parent
3f9ab4b89c
commit
689c633e92
@ -173,8 +173,9 @@ class Web(callbacks.PluginRegexp):
|
|||||||
if raiseErrors:
|
if raiseErrors:
|
||||||
irc.error(_('Connection to %s timed out') % url, Raise=True)
|
irc.error(_('Connection to %s timed out') % url, Raise=True)
|
||||||
else:
|
else:
|
||||||
selg.log.info('Web plugins TitleSnarfer: URL <%s> timed out',
|
self.log.info('Web plugins TitleSnarfer: URL <%s> timed out',
|
||||||
url)
|
url)
|
||||||
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if raiseErrors:
|
if raiseErrors:
|
||||||
irc.error(_('That URL raised <' + str(e)) + '>',
|
irc.error(_('That URL raised <' + str(e)) + '>',
|
||||||
|
Loading…
Reference in New Issue
Block a user