# HG changeset patch # User Drew Perttula # Date 2011-06-16 07:11:34 # Node ID af5539fe35a78438f8f4032fc6b2e39029e8016c # Parent 54c863b2553ec8aca8670caaaad0d37f5f29e05c CC startup doesn't need a subterms file. it'll make the first one Ignore-this: d39d7404a7444c6b937d57257f5bf45f diff --git a/bin/curvecalc b/bin/curvecalc --- a/bin/curvecalc +++ b/bin/curvecalc @@ -492,7 +492,13 @@ def main(): 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)