Commit ca1cc73c authored by mathieui's avatar mathieui

xmlstream: refine type check

parent 9489586c
......@@ -1254,7 +1254,7 @@ class XMLStream(asyncio.BaseProtocol):
else:
str_data = data
self.send_raw(str_data)
else:
elif isinstance(data, (str, bytes)):
self.send_raw(data)
except ContinueQueue as exc:
log.debug('Stanza in send queue not sent: %s', exc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment