mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
Update websocket-client
This commit is contained in:
parent
b84fd45719
commit
c3f535d64a
3 changed files with 6 additions and 4 deletions
|
@ -55,7 +55,8 @@ class AlertListener(threading.Thread):
|
|||
log.info('Stopping AlertListener.')
|
||||
self._ws.close()
|
||||
|
||||
def _onMessage(self, ws, message):
|
||||
def _onMessage(self, *args):
|
||||
message = args[-1]
|
||||
""" Called when websocket message is recieved. """
|
||||
try:
|
||||
data = json.loads(message)['NotificationContainer']
|
||||
|
@ -65,6 +66,7 @@ class AlertListener(threading.Thread):
|
|||
except Exception as err: # pragma: no cover
|
||||
log.error('AlertListener Msg Error: %s', err)
|
||||
|
||||
def _onError(self, ws, err): # pragma: no cover
|
||||
def _onError(self, *args): # pragma: no cover
|
||||
err = args[-1]
|
||||
""" Called when websocket error is recieved. """
|
||||
log.error('AlertListener Error: %s' % err)
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
#---------------------------------------------------------
|
||||
requests
|
||||
tqdm
|
||||
websocket-client==0.48.0
|
||||
websocket-client
|
||||
|
|
|
@ -14,7 +14,7 @@ requests
|
|||
sphinx
|
||||
sphinxcontrib-napoleon
|
||||
tqdm
|
||||
websocket-client==0.48.0
|
||||
websocket-client
|
||||
|
||||
# Installing sphinx-rtd-theme directly from github above is used until a point release
|
||||
# above 0.4.3 is released. https://github.com/readthedocs/sphinx_rtd_theme/issues/739
|
||||
|
|
Loading…
Reference in a new issue