From: Shikhar Bhushan Date: Fri, 17 Apr 2009 04:39:55 +0000 (+0000) Subject: git-svn-id: http://ncclient.googlecode.com/svn/trunk@22 6dbcf712-26ac-11de-a2f3-13738... X-Git-Tag: 0.2a~169 X-Git-Url: https://code.grnet.gr/git/ncclient/commitdiff_plain/d0296fee14b3407da611a3663b8464a10da73c13 git-svn-id: ncclient.googlecode.com/svn/trunk@22 6dbcf712-26ac-11de-a2f3-1373824ab735 --- diff --git a/src/session.py b/src/session.py index 1cef54e..70fe0ea 100644 --- a/src/session.py +++ b/src/session.py @@ -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): diff --git a/src/ssh.py b/src/ssh.py index 49e18fe..ba78028 100644 --- a/src/ssh.py +++ b/src/ssh.py @@ -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)