From 37e3151be8eaddbd880e299b35678a502fdae959 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 14 Feb 2018 20:25:53 +0545 Subject: [PATCH] fakessh: restore unpickle() semantics. --- mitogen/fakessh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/fakessh.py b/mitogen/fakessh.py index 40d490c7..3d974e97 100644 --- a/mitogen/fakessh.py +++ b/mitogen/fakessh.py @@ -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)