From 90f1999c6d77e27e6bb3f18d5e1f9ef80b6f2d0e Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 8 Sep 2016 17:44:02 -0700 Subject: [PATCH] clientbot: downgrade bad updateClient() calls to warning --- protocols/clientbot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 7f791b3..8b882ad 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -256,7 +256,10 @@ class ClientbotWrapperProtocol(Protocol): def updateClient(self, target, field, text): """Updates the known ident, host, or realname of a client.""" - assert target in self.irc.users, "Unknown target %s" % target + if target not in self.irc.users: + log.warning("(%s) Unknown target %s for updateClient()", self.irc.name, target) + return + u = self.irc.users[target] if field == 'IDENT' and u.ident != text: