- only print a single warning per run if NM query times out
[mom.git] / pl_mom.py
index d332717..d889e88 100644 (file)
--- a/pl_mom.py
+++ b/pl_mom.py
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: pl_mom.py,v 1.1 2006/04/28 19:27:43 mlhuang Exp $
+# $Id: pl_mom.py,v 1.2 2006/05/08 17:37:28 mlhuang Exp $
 #
 
 import os
@@ -208,5 +208,6 @@ class NM:
                         values[i] = value
             except Exception, err:
                 print "Warning: Exception received while querying Node Manager:", err
+                self.nm = None
 
         return values