Replace SchemaNotFound with HTTPNotFound

Fixes bug 1131682

Change-Id: I615acbef0411677cae5d30262702babd900c0c81
This commit is contained in:
Brian Waldon
2013-02-22 10:21:00 -08:00
parent 6c7fb0e46c
commit 8ec7468134
+1 -1
View File
@@ -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}