X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=comon.py;fp=comon.py;h=7344df3bcd7922106dd488d58cd1d8d800baf20f;hb=edf3bd830291ef703d754ce860a72fde8bb9dd61;hp=75d416598105c9aecfbee2ca03d20bba71f45a14;hpb=c2643681a736d4f353c017c668f08dde2185f585;p=monitor.git diff --git a/comon.py b/comon.py index 75d4165..7344df3 100755 --- a/comon.py +++ b/comon.py @@ -42,10 +42,10 @@ COMONURL = "http://summer.cs.princeton.edu/status/tabulator.cgi?table=table_node def _tohash(rawdata): # First line Comon returns is list of keys with respect to index - keys = rawdata.readline().rstrip().split(", ") - l_host = [] - hash = {} try: + keys = rawdata.readline().rstrip().split(", ") + l_host = [] + hash = {} i_ignored = 0 for line in rawdata.readlines(): l_host = line.rstrip().split(", ") # split the line on ', '