summaryrefslogtreecommitdiff
path: root/heatclient/exc.py
diff options
context:
space:
mode:
authorAngus Salkeld <asalkeld@redhat.com>2013-07-16 12:24:35 +1000
committerAngus Salkeld <asalkeld@redhat.com>2013-07-16 12:24:35 +1000
commit710f7512bbb9074cc31219f8d02153d7e747476d (patch)
treeb48ab602f8557014194d471961023cb91f877c4e /heatclient/exc.py
parentff2033a8c1e0b7cac722890424d3d8ac32952415 (diff)
downloadpython-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.py5
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