diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-18 12:08:10 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-18 12:08:10 -0400 |
commit | 412e8a87c02a09d69c6073125352c54ccda13a48 (patch) | |
tree | 56dba96aa554fe390ecd841efc090dafad82b72f | |
parent | a109aaf307738b7968b460168bfb0e1591884d7f (diff) | |
download | python-termcast-server-412e8a87c02a09d69c6073125352c54ccda13a48.tar.gz python-termcast-server-412e8a87c02a09d69c6073125352c54ccda13a48.zip |
maybe this is where the exception is happening?
-rw-r--r-- | termcast_server/ssh.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/termcast_server/ssh.py b/termcast_server/ssh.py index beffefe..fe585df 100644 --- a/termcast_server/ssh.py +++ b/termcast_server/ssh.py @@ -125,7 +125,11 @@ class Connection(object): def _send_all(self, data): total_sent = 0 while total_sent < len(data): - total_sent += self.chan.send(data[total_sent:]) + try: + total_sent += self.chan.send(data[total_sent:]) + except Exception as e: + print("*** send failed: " + str(e)) + break def _display_streamer_screen(self, streamers): self._send_all("\033[H\033[2JWelcome to Termcast!") |