xmlstream: refine type check
This commit is contained in:
parent
9489586cb4
commit
ca1cc73c79
1 changed files with 1 additions and 1 deletions
|
@ -1254,7 +1254,7 @@ class XMLStream(asyncio.BaseProtocol):
|
||||||
else:
|
else:
|
||||||
str_data = data
|
str_data = data
|
||||||
self.send_raw(str_data)
|
self.send_raw(str_data)
|
||||||
else:
|
elif isinstance(data, (str, bytes)):
|
||||||
self.send_raw(data)
|
self.send_raw(data)
|
||||||
except ContinueQueue as exc:
|
except ContinueQueue as exc:
|
||||||
log.debug('Stanza in send queue not sent: %s', exc)
|
log.debug('Stanza in send queue not sent: %s', exc)
|
||||||
|
|
Loading…
Reference in a new issue