changeset f374d0edd731 in /home/hg/repos/python-nbxmpp
details:http://hg.gajim.org/python-nbxmpp?cmd=changeset;node=f374d0edd731 description: fix showing pending traceback
diffstat:
nbxmpp/dispatcher_nb.py | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
diffs (27 lines):
diff -r 9f4a4fe90ae6 -r f374d0edd731 nbxmpp/dispatcher_nb.py --- a/nbxmpp/dispatcher_nb.py Wed Jan 02 15:36:55 2013 +0100 +++ b/nbxmpp/dispatcher_nb.py Wed Jan 02 22:42:32 2013 +0100 @@ -222,9 +222,8 @@ handler(self) if len(self._pendingExceptions) > 0: _pendingException = self._pendingExceptions.pop() - e = _pendingException[0](_pendingException[1]) - e.__traceback__ = _pendingException[2] - raise e + sys.excepthook(*_pendingException) + return try: self.Stream.Parse(data) # end stream:stream tag received @@ -241,9 +240,8 @@ return 0 if len(self._pendingExceptions) > 0: _pendingException = self._pendingExceptions.pop() - e = _pendingException[0](_pendingException[1]) - e.__traceback__ = _pendingException[2] - raise e + sys.excepthook(*_pendingException) + return if len(data) == 0: return '0' return len(data)