Show
Ignore:
Timestamp:
06/29/08 03:25:52 (5 months ago)
Author:
js
Message:

Don't disconnect on unbound prefixes.
Fixes #3083. I can't believe this was unfixed for so long, as it's
really a rather easy fix.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/xmpp/dispatcher_nb.py

    r9487 r9859  
    133133                        raise _pendingException[0], _pendingException[1], _pendingException[2] 
    134134                try: 
    135                         self.Stream.Parse(data) 
     135                        try: 
     136                                self.Stream.Parse(data) 
     137                        except ExpatError, (e): 
     138                                if e[0][:14] == 'unbound prefix': 
     139                                        pass 
     140                                else: 
     141                                        raise 
    136142                        # end stream:stream tag received 
    137143                        if self.Stream and self.Stream.has_received_endtag():