Changeset 5954004 for fedd


Ignore:
Timestamp:
Sep 20, 2011 10:53:18 AM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
65f6442
Parents:
66879a0
Message:

Log missing graphviz. Closes #21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r66879a0 r5954004  
    695695
    696696        # Use dot to create a visualization
    697         dot = Popen([neato, '-Gstart=rand', '-Gepsilon=0.005', '-Gmaxiter=2000',
    698                 '-Gpack=true', dotname], stdout=PIPE, stderr=dnull,
    699                 close_fds=True)
     697        try:
     698            dot = Popen([neato, '-Gstart=rand', '-Gepsilon=0.005',
     699                '-Gmaxiter=2000', '-Gpack=true', dotname], stdout=PIPE,
     700                stderr=dnull, close_fds=True)
     701        except EnvironmentError:
     702            raise service_error(service_error.internal,
     703                    "Cannot generate visualization: is graphviz available?")
    700704        dnull.close()
    701705
Note: See TracChangeset for help on using the changeset viewer.