Better error handling for title command.

This commit is contained in:
Jeremy Fincher 2003-04-29 15:40:02 +00:00
parent d7bdb77538
commit 6822cc31a7

View File

@ -74,6 +74,8 @@ class Http(callbacks.Privmsg):
irc.reply(msg, m.group(1))
else:
irc.reply(msg, 'That URL appears to have no HTML title.')
except ValueError, e:
irc.error(msg, str(e))
except Exception, e:
irc.error(msg, debug.exnToString(e))