Mercurial > code > home > repos > light9
changeset 637:af5539fe35a7
CC startup doesn't need a subterms file. it'll make the first one
Ignore-this: d39d7404a7444c6b937d57257f5bf45f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 16 Jun 2011 07:11:34 +0000 |
parents | 54c863b2553e |
children | 8c878eb4e214 |
files | bin/curvecalc |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/curvecalc Thu Jun 16 07:10:56 2011 +0000 +++ b/bin/curvecalc Thu Jun 16 07:11:34 2011 +0000 @@ -492,7 +492,13 @@ curveset = Curveset(sliders=opts.sliders) subterms = [] - graph.parse(graphPathForSubterms(song), format='n3') + subtermPath = graphPathForSubterms(song) + try: + graph.parse(subtermPath, format='n3') + except urllib2.URLError, e: + if e.reason.errno != 2: + raise + log.info("%s not found, starting with empty graph" % subtermPath) log.debug("output") out = Output(subterms, music)