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.
This commit is contained in:
Christian Decker 2020-12-15 11:03:16 +01:00
parent 7e867e5ee6
commit 1ff57f07f8

View File

@ -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()