chiark / gitweb /
curveopt: fix handling of empty lines from findcurve
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Apr 2018 15:26:53 +0000 (16:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Apr 2018 16:18:10 +0000 (17:18 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
curveopt.py

index 8825da568db8c789207b441c148de17f8c819f8c..00019762d8f20a01b1c5b93378fa544c8641c16f 100644 (file)
@@ -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