From: Ian Jackson Date: Sun, 8 Apr 2018 15:26:53 +0000 (+0100) Subject: curveopt: fix handling of empty lines from findcurve X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=36bca47cd3d8d490002ec2f7c1a09499c8d1d995;p=moebius3.git curveopt: fix handling of empty lines from findcurve Signed-off-by: Ian Jackson --- 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