Fix item_name -> attribute_name KeyError in select_config().
authorW. Trevor King <wking@drexel.edu>
Fri, 23 Sep 2011 16:31:33 +0000 (12:31 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 23 Sep 2011 16:31:33 +0000 (12:31 -0400)
h5config/config.py

index 2814fa4bd60692652b7896861cbc1a06b6de5e52..bbe9469ee1dc1d1dc34f49b07bd59464ec28db33 100644 (file)
@@ -363,4 +363,4 @@ class Config (dict):
         for item in setting_value:
             if item[attribute_name] == attribute_value:
                 return item
-        raise KeyError(item_name)
+        raise KeyError(attribute_value)