diff --git a/plexapi/myplex.py b/plexapi/myplex.py index 61c0b3d2..adad06df 100644 --- a/plexapi/myplex.py +++ b/plexapi/myplex.py @@ -303,7 +303,7 @@ class MyPlexResource(object): log.info( 'Testing resource connection: %s?X-Plex-Token=%s %s', url, token, okerr) - results = [r[2] for r in results if r and r is not None] + results = [r[2] for r in results if r and r[2] is not None] if not results: raise NotFound('Unable to connect to resource: %s' % self.name) log.info('Connecting to server: %s?X-Plex-Token=%s',