Merge pull request #667 from croneter/pr-keyError
Fix keyError 'sessionKey' for weird PMS messages
This commit is contained in:
commit
06fe382a3f
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