~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to graph.py

  • Committer: Aaron Bentley
  • Date: 2007-11-27 14:06:37 UTC
  • Revision ID: abentley@panoramicfeedback.com-20071127140637-t5s8sq6x1r1ijczf
Fix error when dot not found

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
            done = True
295
295
        except NoDot, e:
296
296
            raise BzrCommandError("Can't find 'dot'.  Please ensure Graphviz"\
297
 
                " is installed correctly, or use --noantialias")
 
297
                " is installed correctly.")
298
298
    elif ext == 'dot' and not done:
299
299
        my_file = file(filename, 'wb')
300
300
        for fragment in output:
304
304
            invoke_dot_html(output, filename)
305
305
        except NoDot, e:
306
306
            raise BzrCommandError("Can't find 'dot'.  Please ensure Graphviz"\
307
 
                " is installed correctly, or use --noantialias")
 
307
                " is installed correctly.")
308
308
    elif not done:
309
309
        print "Unknown file extension: %s" % ext
310
310