Update websocket-client

This commit is contained in:
zSeriesGuy 2019-12-04 13:53:30 -05:00
parent b84fd45719
commit c3f535d64a
3 changed files with 6 additions and 4 deletions

View file

@ -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)

View file

@ -4,4 +4,4 @@
#---------------------------------------------------------
requests
tqdm
websocket-client==0.48.0
websocket-client

View file

@ -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