From 1ff57f07f87fdd50fb9295bbe773c4c4b8f1b909 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 15 Dec 2020 11:03:16 +0100 Subject: [PATCH] pyln: Check that the stderr line is not none in pyln-testing tail I stumbled over this in a test run and it seems benign. --- contrib/pyln-testing/pyln/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 66fe4c47d..623fb5401 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -227,7 +227,7 @@ class TailableProc(object): if self.proc.stderr: for line in iter(self.proc.stderr.readline, ''): - if len(line) == 0: + if line is None or len(line) == 0: break self.err_logs.append(line.rstrip().decode('UTF-8', 'replace')).rstrip() self.proc.stderr.close()