gateway.websocket: extract status.game properly

This commit is contained in:
Luna 2018-12-06 00:02:32 -03:00
parent 78be4c6fab
commit 813ff7707f
1 changed files with 2 additions and 0 deletions

View File

@ -425,6 +425,8 @@ class GatewayWebsocket:
game = status['activities'][0]
except (KeyError, IndexError):
game = None
else:
game = status['game']
# construct final status
status = {