Fix KeyError in ConfigMgr._get
authorHuang Hao <hao.h.huang@intel.com>
Fri, 7 Sep 2012 02:32:49 +0000 (10:32 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Fri, 7 Sep 2012 02:36:44 +0000 (10:36 +0800)
commit148fd55d8b7b061720792f3b786fd080a0a43e33
treec258c31ec98b369f6dc4434a87f277425f8e40bb
parent6472f6db8885750fcb732b8a137515a15d139cd7
Fix KeyError in ConfigMgr._get

In function ConfigMrg._get() if NoOptionError occurs and section
name is not in self.DEFAULTS, KeyError will be raised.

Change-Id: Iaa08c032eae45b1cc95294a4c7975d0aedb10405
gitbuildsys/conf.py
tests/test_config.py