mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Socket: Assert 'irc' is not None.
This commit is contained in:
parent
427f01032b
commit
8aba15807d
@ -68,6 +68,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
_selecting = [False] # We want it to be mutable.
|
||||
def __init__(self, irc):
|
||||
self._instances.append(self)
|
||||
assert irc is not None
|
||||
self.irc = irc
|
||||
drivers.IrcDriver.__init__(self, irc)
|
||||
drivers.ServersMixin.__init__(self, irc)
|
||||
|
Loading…
Reference in New Issue
Block a user