mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
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:
parent
7e867e5ee6
commit
1ff57f07f8
@ -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…
Reference in New Issue
Block a user