import database
import comon
-from nodecommon 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
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
main()
except IOError:
pass
+ except:
+ email_exception()