summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-07-05 22:41:49 +0200
committermathieui <mathieui@mathieui.net>2021-07-05 22:42:18 +0200
commitca1cc73c79e1adc3653cb4452c4f1eee9b58365a (patch)
tree45f996c444d55992a336090db02215b583c8e23e
parent9489586cb4c559012b3c53ec376536b27e53eb00 (diff)
downloadslixmpp-ca1cc73c79e1adc3653cb4452c4f1eee9b58365a.tar.gz
slixmpp-ca1cc73c79e1adc3653cb4452c4f1eee9b58365a.tar.bz2
slixmpp-ca1cc73c79e1adc3653cb4452c4f1eee9b58365a.tar.xz
slixmpp-ca1cc73c79e1adc3653cb4452c4f1eee9b58365a.zip
xmlstream: refine type check
-rw-r--r--slixmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index c21cc954..30f99071 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -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)