From 1fb3852fa63f4fb374f74c3b8d13c7eef29f6882 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 22 Jul 2019 18:12:41 +0100 Subject: [PATCH] [stream-refactor] fix crash when no stderr present. --- mitogen/parent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index c39be011..cd9810c6 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -1486,7 +1486,7 @@ class Connection(object): self, self.proc.pid, self.proc.stdin.fileno(), self.proc.stdout.fileno(), - self.proc.stderr.fileno()) + self.proc.stderr and self.proc.stderr.fileno()) self.latch = mitogen.core.Latch() self._router.broker.defer(self._async_connect)