# HG changeset patch # User drewp@bigasterisk.com # Date 1339782900 0 # Node ID 0541fbe86d2af3a707e8ed10fdfafea42916b6a3 # Parent e6cc9751f61c9e471cf7ea07158c304cf5340af9 CC error message Ignore-this: a87b8960e4f306e69437c75d9eb45463 diff -r e6cc9751f61c -r 0541fbe86d2a light9/curvecalc/curveview.py --- a/light9/curvecalc/curveview.py Fri Jun 15 17:54:42 2012 +0000 +++ b/light9/curvecalc/curveview.py Fri Jun 15 17:55:00 2012 +0000 @@ -1137,7 +1137,10 @@ f.curveView.goLive() def row(self, name): - return [r for r in self.allCurveRows if r.name == name][0] + matches = [r for r in self.allCurveRows if r.name == name] + if not matches: + raise ValueError("no curveRow named %r" % name) + return matches[0] def goLive(self): """for startup performance, none of the curves redraw