diff options
author | Angus Salkeld <asalkeld@redhat.com> | 2013-07-16 12:24:35 +1000 |
---|---|---|
committer | Angus Salkeld <asalkeld@redhat.com> | 2013-07-16 12:24:35 +1000 |
commit | 710f7512bbb9074cc31219f8d02153d7e747476d (patch) | |
tree | b48ab602f8557014194d471961023cb91f877c4e /heatclient/exc.py | |
parent | ff2033a8c1e0b7cac722890424d3d8ac32952415 (diff) | |
download | python-heatclient-710f7512bbb9074cc31219f8d02153d7e747476d.tar.gz |
Make the parameter checking consistent.
Make format_parameters() raise CommandError with
the same message. Rather than raise MalformedRequestBody
and then catch that and raise CommandError. This just
simplifies things.
Change-Id: Ic05af32dd916e953e6b162daccc4525cb4734a46
Diffstat (limited to 'heatclient/exc.py')
-rw-r--r-- | heatclient/exc.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/heatclient/exc.py b/heatclient/exc.py index ddadfb7..c90b0fc 100644 --- a/heatclient/exc.py +++ b/heatclient/exc.py @@ -39,11 +39,6 @@ class HTTPException(BaseException): code = 'N/A' -class MalformedRequestBody(BaseException): - """Malformed parameter in request.""" - pass - - class HTTPMultipleChoices(HTTPException): code = 300 |