From 3a96f6735ba4ce15b48a9a015e6319514c9babac 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 105bca1b0..28d719544 100644 --- a/plugins/Services/plugin.py +++ b/plugins/Services/plugin.py @@ -319,7 +319,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]