Handle empty Plex client username (#33271)

pull/33297/head
jjlawren 2020-03-26 15:18:23 -05:00 committed by GitHub
parent 6c6318d18f
commit f1e58d0784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class PlexServer:
continue
session_username = session.usernames[0]
for player in session.players:
if session_username not in monitored_users:
if session_username and session_username not in monitored_users:
ignored_clients.add(player.machineIdentifier)
_LOGGER.debug("Ignoring Plex client owned by %s", session_username)
continue