mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Prevented a possible raised exception in IrcMsgQueue.
This commit is contained in:
parent
688013de27
commit
c37b775867
@ -167,7 +167,9 @@ class IrcMsgQueue(object):
|
||||
else:
|
||||
msg = None
|
||||
if msg:
|
||||
self.msgs.remove(msg)
|
||||
if msg not in self.msgs:
|
||||
debug.msg('Odd, dequeuing a message that\'s not in self.msgs.')
|
||||
self.msgs.discard(msg)
|
||||
return msg
|
||||
|
||||
def __nonzero__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user