mirror of https://gitlab.com/litecord/litecord.git
gateway.websocket: extract status.game properly
This commit is contained in:
parent
78be4c6fab
commit
813ff7707f
|
|
@ -425,6 +425,8 @@ class GatewayWebsocket:
|
||||||
game = status['activities'][0]
|
game = status['activities'][0]
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
game = None
|
game = None
|
||||||
|
else:
|
||||||
|
game = status['game']
|
||||||
|
|
||||||
# construct final status
|
# construct final status
|
||||||
status = {
|
status = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue