chiark / gitweb /
curveopt: fix handling of empty lines from findcurve
[moebius3.git] / 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