From bc7d9a294386ce667470484ccb238c59148b544f Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 7 Mar 2006 11:54:45 +0000 Subject: [PATCH] clean last exception to prevent printing TB ( #1629 ) --- src/common/xmpp/transports_nb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py index 25513015e..87875b602 100644 --- a/src/common/xmpp/transports_nb.py +++ b/src/common/xmpp/transports_nb.py @@ -209,6 +209,7 @@ class NonBlockingTcp(PlugIn, IdleObject): except Exception, e: if len(e.args) > 0 and isinstance(e.args[0], int): errnum = e[0] + sys.exc_clear() # "received" will be empty anyhow if errnum == socket.SSL_ERROR_WANT_READ: pass