clean last exception to prevent printing TB

( #1629 )
This commit is contained in:
Dimitur Kirov 2006-03-07 11:54:45 +00:00
parent 0c8079f8b2
commit bc7d9a2943
1 changed files with 1 additions and 0 deletions

View File

@ -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