Show More
@@ -30,6 +30,7 b' from zmq.utils import jsonapi' | |||||
30 | from IPython.external.decorator import decorator |
|
30 | from IPython.external.decorator import decorator | |
31 | from IPython.zmq.session import Session |
|
31 | from IPython.zmq.session import Session | |
32 | from IPython.lib.security import passwd_check |
|
32 | from IPython.lib.security import passwd_check | |
|
33 | from IPython.utils.jsonutil import date_default | |||
33 |
|
34 | |||
34 | try: |
|
35 | try: | |
35 | from docutils.core import publish_string |
|
36 | from docutils.core import publish_string | |
@@ -385,13 +386,13 b' class ZMQStreamHandler(websocket.WebSocketHandler):' | |||||
385 | except KeyError: |
|
386 | except KeyError: | |
386 | pass |
|
387 | pass | |
387 | msg.pop('buffers') |
|
388 | msg.pop('buffers') | |
388 | return jsonapi.dumps(msg) |
|
389 | return jsonapi.dumps(msg, default=date_default) | |
389 |
|
390 | |||
390 | def _on_zmq_reply(self, msg_list): |
|
391 | def _on_zmq_reply(self, msg_list): | |
391 | try: |
|
392 | try: | |
392 | msg = self._reserialize_reply(msg_list) |
|
393 | msg = self._reserialize_reply(msg_list) | |
393 | except: |
|
394 | except Exception: | |
394 | self.application.log.critical("Malformed message: %r" % msg_list) |
|
395 | self.application.log.critical("Malformed message: %r" % msg_list, exc_info=True) | |
395 | else: |
|
396 | else: | |
396 | self.write_message(msg) |
|
397 | self.write_message(msg) | |
397 |
|
398 |
General Comments 0
You need to be logged in to leave comments.
Login now