Loading cccli/commands/console.py +3 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,9 @@ class FakeTtySocket(object): def recv(self, size): data = os.read(0, size) if "\x1d" in data: # we need to raise a IOError to make sjrpc end the connection raise IOError("Connexion cancelled by user") # return empty sting to simulate an EOF instead of raise # and execption return "" return data def send(self, data): Loading Loading
cccli/commands/console.py +3 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,9 @@ class FakeTtySocket(object): def recv(self, size): data = os.read(0, size) if "\x1d" in data: # we need to raise a IOError to make sjrpc end the connection raise IOError("Connexion cancelled by user") # return empty sting to simulate an EOF instead of raise # and execption return "" return data def send(self, data): Loading