Skip to content
Snippets Groups Projects
Commit 23cdc3fd authored by js's avatar js
Browse files

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.
parent 6b341455
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,13 @@ class Dispatcher(PlugIn):
_pendingException = self._pendingExceptions.pop()
raise _pendingException[0], _pendingException[1], _pendingException[2]
try:
self.Stream.Parse(data)
try:
self.Stream.Parse(data)
except ExpatError, (e):
if e[0][:14] == 'unbound prefix':
pass
else:
raise
# end stream:stream tag received
if self.Stream and self.Stream.has_received_endtag():
self._owner.Connection.disconnect()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment