xmlstream: refine type check

This commit is contained in:
mathieui 2021-07-05 22:41:49 +02:00
parent 9489586cb4
commit ca1cc73c79

View file

@ -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)