Merge "Catch websocket connection close errors in cleanup"

This commit is contained in:
Zuul 2018-12-07 16:57:38 +00:00 committed by Gerrit Code Review
commit 478678a77b
1 changed files with 4 additions and 1 deletions

View File

@ -167,7 +167,10 @@ class WebsocketClient(object):
def __exit__(self, *exc):
"""Call cleanup when exiting the context manager"""
self.cleanup()
try:
self.cleanup()
except websocket.WebSocketConnectionClosedException:
pass
class ClientWrapper(object):