From 98996be2511a95b8f1f0608b76e5af13af22d6b8 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Mon, 8 Aug 2011 18:45:02 -0400 Subject: [PATCH] Services: catch occasional error when removing waiting joins from list --- plugins/Services/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Services/plugin.py b/plugins/Services/plugin.py index 09f197d06..b763202c5 100644 --- a/plugins/Services/plugin.py +++ b/plugins/Services/plugin.py @@ -321,7 +321,10 @@ class Services(callbacks.Plugin): for netname, m in tmp_wj: if netname == irc.network: irc.sendMsg(m) - self.waitingJoins.remove((netname, m,)) + try: + self.waitingJoins.remove((netname, m,)) + except ValueError: + pass # weird stuff happen sometimes elif 'not yet authenticated' in s: # zirc.org has this, it requires an auth code. email = s.split()[-1]