mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-23 04:03:05 +00:00
Convert filter back to list to make Python3 happy
This commit is contained in:
parent
b969ec5cfa
commit
457046f174
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class MyPlexResource:
|
||||||
# or (uri, None) in the case a connection could not be established.
|
# or (uri, None) in the case a connection could not be established.
|
||||||
for uri, result in results:
|
for uri, result in results:
|
||||||
log.info('Testing connection: %s %s', uri, 'OK' if result else 'ERR')
|
log.info('Testing connection: %s %s', uri, 'OK' if result else 'ERR')
|
||||||
results = filter(None, [r[1] for r in results if r])
|
results = list(filter(None, [r[1] for r in results if r]))
|
||||||
if not results:
|
if not results:
|
||||||
raise NotFound('Unable to connect to resource: %s' % self.name)
|
raise NotFound('Unable to connect to resource: %s' % self.name)
|
||||||
log.info('Connecting to server: %s', results[0])
|
log.info('Connecting to server: %s', results[0])
|
||||||
|
|
Loading…
Reference in a new issue