chiark
/
gitweb
/
~ian
/
moebius3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curveopt: fix handling of empty lines from findcurve
[moebius3.git]
/
curveopt.py
diff --git
a/curveopt.py
b/curveopt.py
index 8825da568db8c789207b441c148de17f8c819f8c..00019762d8f20a01b1c5b93378fa544c8641c16f 100644
(file)
--- a/
curveopt.py
+++ b/
curveopt.py
@@
-85,9
+85,11
@@
class OptimisedCurve():
while True:
l = subproc.stdout.readline()
while True:
l = subproc.stdout.readline()
+ if not l:
+ oc._dbg('findcurve EOF')
+ vdbg().crashing('findcurve EOF')
l = l.rstrip()
oc._dbg('<< ' + l)
l = l.rstrip()
oc._dbg('<< ' + l)
- if not l: vdbg().crashing('findcurve EOF')
if not l.startswith('['):
commentary += ' '
commentary += l
if not l.startswith('['):
commentary += ' '
commentary += l