Commit 37e3151b authored by David Wilson's avatar David Wilson

fakessh: restore unpickle() semantics.

parent e63e9d29
......@@ -137,7 +137,7 @@ class Process(object):
if msg == mitogen.core._DEAD:
return
data = msg.unpickle()
data = msg.unpickle(throw=False)
if data == mitogen.core._DEAD:
IOLOG.debug('%r._on_stdin() -> %r', self, data)
self.pump.close()
......@@ -148,7 +148,7 @@ class Process(object):
def _on_control(self, msg):
if msg != mitogen.core._DEAD:
command, arg = msg.unpickle()
command, arg = msg.unpickle(throw=False)
LOG.debug('%r._on_control(%r, %s)', self, command, arg)
func = getattr(self, '_on_%s' % (command,), None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment