Replace SchemaNotFound with HTTPNotFound
Fixes bug 1131682 Change-Id: I615acbef0411677cae5d30262702babd900c0c81
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user