X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=showlatlon.py;h=2176462319519b45b5fa7dc156b7dcf39ec926dd;hb=17b11b54e2c212d5b3a8f8a15f49284abd91b50e;hp=1d0659404e4e3294fea425f37f0d88c3cc96c4a0;hpb=2ecb77e4a1817ecc7ce62dd59fefbb701eac6a83;p=monitor.git diff --git a/showlatlon.py b/showlatlon.py index 1d06594..2176462 100755 --- a/showlatlon.py +++ b/showlatlon.py @@ -9,7 +9,7 @@ from datetime import datetime, timedelta import database import comon -from monitor.common import color_pcu_state, datetime_fromstr +from monitor.common import color_pcu_state, datetime_fromstr, email_exception from nodehistory import get_filefromglob import time import traceback @@ -83,8 +83,8 @@ def main(): begin = time.strftime(format) d = datetime_fromstr(begin) - fbstr = get_filefromglob(d, "production.findbad") - fbpcustr = get_filefromglob(d, "production.findbadpcus") + fbstr = get_filefromglob(d, "production.findbad")[0] + fbpcustr = get_filefromglob(d, "production.findbadpcus")[0] l_plcnodes = plccache.l_nodes l_plcsites = plccache.l_sites @@ -211,3 +211,5 @@ if __name__ == "__main__": main() except IOError: pass + except: + email_exception()