From 8d97233c9bc7bcbeb27c38bf7481d4831c75cf8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=2E=20Brandenburg?= Date: Fri, 26 Mar 2010 08:53:45 -0400 Subject: pm2: don't crash if host is unknown --- plot_pm2.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plot_pm2.py') diff --git a/plot_pm2.py b/plot_pm2.py index d53a6da..fd3270e 100755 --- a/plot_pm2.py +++ b/plot_pm2.py @@ -108,6 +108,9 @@ class CyclePlotter(defapp.App): def plot_preempt_migrate(self, datafile, name, conf): plots = self.setup_pmo_graphs(datafile, conf) + if plots is None: + print "Skipping %s..." % datafile + return for (tmp, xcol, ycol, yminus, tag) in plots: xtag = PMO_COL_LABEL[xcol][1] ytag = PMO_COL_LABEL[ycol][1] -- cgit v1.2.2