Fix keyError sessionKey for weird PMS messages
This commit is contained in:
parent
b3402fc3d5
commit
fdbe42a05a
1 changed files with 3 additions and 0 deletions
|
@ -256,6 +256,9 @@ def process_playing(data):
|
|||
skip = True
|
||||
if skip:
|
||||
continue
|
||||
if 'sessionKey' not in message:
|
||||
LOG.warn('Received malformed message from the PMS: %s', message)
|
||||
continue
|
||||
session_key = message['sessionKey']
|
||||
# Do we already have a sessionKey stored?
|
||||
if session_key not in PLAYSTATE_SESSIONS:
|
||||
|
|
Loading…
Reference in a new issue