mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Better error handling for title command.
This commit is contained in:
parent
d7bdb77538
commit
6822cc31a7
@ -74,6 +74,8 @@ class Http(callbacks.Privmsg):
|
|||||||
irc.reply(msg, m.group(1))
|
irc.reply(msg, m.group(1))
|
||||||
else:
|
else:
|
||||||
irc.reply(msg, 'That URL appears to have no HTML title.')
|
irc.reply(msg, 'That URL appears to have no HTML title.')
|
||||||
|
except ValueError, e:
|
||||||
|
irc.error(msg, str(e))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
irc.error(msg, debug.exnToString(e))
|
irc.error(msg, debug.exnToString(e))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user