Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 8f08b576b37799f93873c16d6ee071f5 > files > 2

python-glanceclient-0.8.0-2.fc18.src.rpm

From 61fd49f43724a46040702c7a5627da2f823bb8ea Mon Sep 17 00:00:00 2001
From: Brian Waldon <bcwaldon@gmail.com>
Date: Fri, 22 Feb 2013 10:21:00 -0800
Subject: [PATCH] Replace SchemaNotFound with HTTPNotFound

Fixes bug 1131682

Change-Id: I615acbef0411677cae5d30262702babd900c0c81
---
 glanceclient/v2/shell.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py
index cb45770..12bef8c 100644
--- a/glanceclient/v2/shell.py
+++ b/glanceclient/v2/shell.py
@@ -43,7 +43,7 @@ def do_explain(gc, args):
     """Describe a specific model."""
     try:
         schema = gc.schemas.get(args.model)
-    except exc.SchemaNotFound:
+    except exc.HTTPNotFound:
         utils.exit('Unable to find requested model \'%s\'' % args.model)
     else:
         formatters = {'Attribute': lambda m: m.name}