Browse Source

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.
ppa
Christian Decker 4 years ago
parent
commit
1ff57f07f8
  1. 2
      contrib/pyln-testing/pyln/testing/utils.py

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

Loading…
Cancel
Save