diff --git a/zunclient/common/websocketclient/websocketclient.py b/zunclient/common/websocketclient/websocketclient.py index c6df6ac2..92271585 100644 --- a/zunclient/common/websocketclient/websocketclient.py +++ b/zunclient/common/websocketclient/websocketclient.py @@ -33,6 +33,7 @@ import websocket import docker +from zunclient.common.apiclient import exceptions as acexceptions from zunclient.common.websocketclient import exceptions LOG = logging.getLogger(__name__) @@ -195,6 +196,8 @@ class BaseClient(object): self.tty_resize(height=rows, width=cols) except IOError: # Container already exited pass + except acexceptions.BadRequest: + pass def tty_size(self, fd): """Get the tty size