more more

This commit is contained in:
Hellowlol 2017-10-26 00:51:25 +02:00
parent 7c2395a75e
commit 6735ecc123
3 changed files with 2 additions and 7 deletions

View file

@ -5,6 +5,7 @@ exclude_lines =
raise Unsupported raise Unsupported
raise Exception raise Exception
except ImportError except ImportError
except BadRequest
def __repr__ def __repr__
def __bool__ def __bool__
def __iter__ def __iter__

View file

@ -47,7 +47,7 @@ class AlertListener(threading.Thread):
""" Called when websocket message is recieved. """ """ Called when websocket message is recieved. """
try: try:
data = json.loads(message)['NotificationContainer'] data = json.loads(message)['NotificationContainer']
log.debug('Alert: %s', data) log.debug('Alert: %s %s %s', *data)
if self._callback: if self._callback:
self._callback(data) self._callback(data)
except Exception as err: except Exception as err:

View file

@ -155,12 +155,6 @@ def test_server_createPlayQueue(plex, movie):
assert playqueue.playQueueShuffled is True assert playqueue.playQueueShuffled is True
def _test_server_createPlaylist():
# TODO: Implement _test_server_createPlaylist()
# see test_playlists.py
pass
def test_server_client_not_found(plex): def test_server_client_not_found(plex):
with pytest.raises(NotFound): with pytest.raises(NotFound):
plex.client('<This-client-should-not-be-found>') plex.client('<This-client-should-not-be-found>')