Add a None check when setting status in Client.change_status.
This commit is contained in:
parent
7adf761a35
commit
03862a7145
@ -1587,9 +1587,13 @@ class Client:
|
|||||||
log.debug('Sending "{}" to change status'.format(sent))
|
log.debug('Sending "{}" to change status'.format(sent))
|
||||||
yield from self._send_ws(sent)
|
yield from self._send_ws(sent)
|
||||||
for server in self.servers:
|
for server in self.servers:
|
||||||
server.me.game = game
|
me = server.me
|
||||||
|
if me is None:
|
||||||
|
continue
|
||||||
|
|
||||||
|
me.game = game
|
||||||
status = Status.idle if idle_since else Status.online
|
status = Status.idle if idle_since else Status.online
|
||||||
server.me.status = status
|
me.status = status
|
||||||
|
|
||||||
# Channel management
|
# Channel management
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user