Mercurial > code > home > repos > light9
changeset 747:0541fbe86d2a
CC error message
Ignore-this: a87b8960e4f306e69437c75d9eb45463
author | drewp@bigasterisk.com |
---|---|
date | Fri, 15 Jun 2012 17:55:00 +0000 |
parents | e6cc9751f61c |
children | a86e1aa9e369 |
files | light9/curvecalc/curveview.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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