Changeset 10038 in genesis for tools


Ignore:
Timestamp:
Mar 6, 2012, 1:44:00 PM (13 years ago)
Author:
rick
Message:

Fix non-existing store.yaml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/make-network-graph.py

    r9989 r10038  
    1515OUTFILE = os.path.join(os.getcwd(),'network.png')
    1616
    17 store = yaml.load(open('store.yaml','r'))
     17try:
     18  store = yaml.load(open('store.yaml','r'))
     19except IOError:
     20  store = {'uptime' : {}, 'snmp' : {}, 'traffic' : {}}
     21  pass
    1822
    1923def make_graph():
Note: See TracChangeset for help on using the changeset viewer.