Merge "Catch websocket connection close errors in cleanup"
This commit is contained in:
commit
478678a77b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue