From 63d95deab685c9fea5eec5c946e88851dd8de225 Mon Sep 17 00:00:00 2001 From: Tobias Oberstein Date: Sun, 31 Jan 2016 18:03:03 +0100 Subject: [PATCH] fix unicode issue --- autobahn/wamp/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autobahn/wamp/protocol.py b/autobahn/wamp/protocol.py index c6badee56..c9896353e 100644 --- a/autobahn/wamp/protocol.py +++ b/autobahn/wamp/protocol.py @@ -933,7 +933,7 @@ def onClose(self, wasClean): if self._session_id: # fire callback and close the transport - d = txaio.as_future(self.onLeave, types.CloseDetails(reason=types.CloseDetails.REASON_TRANSPORT_LOST, message="WAMP transport was lost without closing the session before")) + d = txaio.as_future(self.onLeave, types.CloseDetails(reason=types.CloseDetails.REASON_TRANSPORT_LOST, message=u"WAMP transport was lost without closing the session before")) def _error(e): return self._swallow_error(e, "While firing onLeave")