git-svn-id: http://ncclient.googlecode.com/svn/trunk@22 6dbcf712-26ac-11de-a2f3-13738...
authorShikhar Bhushan <shikhar@schmizz.net>
Fri, 17 Apr 2009 04:39:55 +0000 (04:39 +0000)
committerShikhar Bhushan <shikhar@schmizz.net>
Fri, 17 Apr 2009 04:39:55 +0000 (04:39 +0000)
src/session.py
src/ssh.py

index 1cef54e..70fe0ea 100644 (file)
@@ -42,7 +42,7 @@ class Session(Thread, Subject, Listener):
             self.id = id
             self.capabilities[SERVER] = capabilities
             self.initialised = True
-        else:
+        else: # there was an error in parsing or such
             raise ValueError
     
     def _greet(self):
index 49e18fe..ba78028 100644 (file)
@@ -80,10 +80,7 @@ class SSHSession(Session):
                     self._inBuf += data
                     (before, _, after) = self._inBuf.partition(MSG_DELIM)
                     if after:
-                         # we don't want this thread to ground to a halt
-                         # because of an error dispatching one reply...
-                        try: self.dispatch('reply', before)
-                        except: pass
+                        self.dispatch('reply', before)
                         self._inBuf = after
                 else:
                     self.dispatch('error', self._inBuf)