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:
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue