diff options
author | Lance Stout <lancestout@gmail.com> | 2011-07-01 15:19:37 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-07-01 15:19:37 -0700 |
commit | 04def6d9256b0d5ef97d75b08ae9330d3c253948 (patch) | |
tree | 04d04ff175387c2bc31f26be0e360e33b9012a81 /sleekxmpp/stanza/rootstanza.py | |
parent | 634f5d691bab9855deddc4c201389bb60470d76e (diff) | |
parent | 2a2ac73845ffc8695e2bc55746f45e1a18d55e6c (diff) | |
download | slixmpp-04def6d9256b0d5ef97d75b08ae9330d3c253948.tar.gz slixmpp-04def6d9256b0d5ef97d75b08ae9330d3c253948.tar.bz2 slixmpp-04def6d9256b0d5ef97d75b08ae9330d3c253948.tar.xz slixmpp-04def6d9256b0d5ef97d75b08ae9330d3c253948.zip |
Merge branch 'develop' into stream_features
Diffstat (limited to 'sleekxmpp/stanza/rootstanza.py')
-rw-r--r-- | sleekxmpp/stanza/rootstanza.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sleekxmpp/stanza/rootstanza.py b/sleekxmpp/stanza/rootstanza.py index bc11476e..9e1d1cfa 100644 --- a/sleekxmpp/stanza/rootstanza.py +++ b/sleekxmpp/stanza/rootstanza.py @@ -64,8 +64,7 @@ class RootStanza(StanzaBase): # log the error log.exception('Error handling {%s}%s stanza' % (self.namespace, self.name)) - # Finally raise the exception, so it can be handled (or not) - # at a higher level by using sys.excepthook. - raise e + # Finally raise the exception to a global exception handler + self.stream.exception(e) register_stanza_plugin(RootStanza, Error) |