From d383f78f8ca27eaf982d150fd8c955f8bd451690 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Thu, 2 Feb 2012 23:25:53 +0000 Subject: Makes common/cfg.py raise AttributeError * fixes bug 915039 * includes test Change-Id: I67b886be3b5af3763f52fffe54085975d61d61eb --- openstack/common/cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack') diff --git a/openstack/common/cfg.py b/openstack/common/cfg.py index c8c6a52..34d5e6f 100644 --- a/openstack/common/cfg.py +++ b/openstack/common/cfg.py @@ -240,7 +240,7 @@ class ArgsAlreadyParsedError(Error): return ret -class NoSuchOptError(Error): +class NoSuchOptError(Error, AttributeError): """Raised if an opt which doesn't exist is referenced.""" def __init__(self, opt_name, group=None): -- cgit