Fix overrides to clean out when none present.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Mon, 3 Aug 2009 21:31:26 +0000 (21:31 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Mon, 3 Aug 2009 21:31:26 +0000 (21:31 +0000)
nm.py

diff --git a/nm.py b/nm.py
index 3f8edbc..c262906 100755 (executable)
--- a/nm.py
+++ b/nm.py
@@ -85,8 +85,7 @@ def getPLCDefaults(data, config):
             if len(attr_dict):
                 logger.verbose("Found default slice overrides.\n %s" % attr_dict)
                 config.OVERRIDES = attr_dict
-            return 
-    if 'OVERRIDES' not in dir(config): del config.OVERRIDES
+        elif 'OVERRIDES' in dir(config): del config.OVERRIDES
 
 
 def run():