From 36bca47cd3d8d490002ec2f7c1a09499c8d1d995 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 8 Apr 2018 16:26:53 +0100 Subject: [PATCH] curveopt: fix handling of empty lines from findcurve Signed-off-by: Ian Jackson --- curveopt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curveopt.py b/curveopt.py index ee14c5d..4ee5338 100644 --- a/curveopt.py +++ b/curveopt.py @@ -85,9 +85,11 @@ class OptimisedCurve(): while True: l = subproc.stdout.readline() + if not l: + oc._dbg('findcurve EOF') + vdbg().crashing('findcurve EOF') l = l.rstrip() oc._dbg('<< ' + l) - if not l: vdbg().crashing('findcurve EOF') if not l.startswith('['): commentary += ' ' commentary += l -- 2.30.2