From 4d01531f91e4b20db2cb6ff738ee9af724ed2bf1 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Wed, 11 Jan 2012 13:22:36 -0800 Subject: Makes common/cfg.py raise AttributeError * fixes bug 915039 * includes test Change-Id: I67b886be3b5af3763f52fffe54085975d61d61eb --- nova/common/cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/common') diff --git a/nova/common/cfg.py b/nova/common/cfg.py index 54940e7d9..58d17d99f 100644 --- a/nova/common/cfg.py +++ b/nova/common/cfg.py @@ -229,7 +229,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