Bug 921930
remove depedency on webob from python-quantumclient Rebased and repushed after review expired Change-Id: I7dc3840018f3496116d30c2684bc44f64fa2752b
This commit is contained in:
parent
55547ca785
commit
880cde716e
@ -130,6 +130,10 @@ class MalformedRequestBody(QuantumException):
|
||||
message = _("Malformed request body: %(reason)s")
|
||||
|
||||
|
||||
class MalformedResponseBody(QuantumException):
|
||||
message = _("Malformed response body: %(reason)s")
|
||||
|
||||
|
||||
class Duplicate(Error):
|
||||
pass
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
from xml.dom import minidom
|
||||
import webob.exc
|
||||
|
||||
from quantum.common import exceptions as exception
|
||||
from quantum.common import utils
|
||||
|
||||
|
||||
@ -41,7 +41,8 @@ class Serializer(object):
|
||||
try:
|
||||
return self.get_deserialize_handler(content_type)(datastring)
|
||||
except Exception:
|
||||
raise webob.exc.HTTPBadRequest("Could not deserialize data")
|
||||
raise exception.MalformedResponseBody(
|
||||
reason="Unable to deserialize response body")
|
||||
|
||||
def get_deserialize_handler(self, content_type):
|
||||
handlers = {
|
||||
|
1
setup.py
1
setup.py
@ -64,7 +64,6 @@ requires = [
|
||||
'Paste',
|
||||
'PasteDeploy',
|
||||
'python-gflags',
|
||||
'webob'
|
||||
]
|
||||
|
||||
EagerResources = [
|
||||
|
@ -4,7 +4,6 @@
|
||||
Paste
|
||||
PasteDeploy==1.5.0
|
||||
python-gflags==1.3
|
||||
WebOb==1.0.8
|
||||
|
||||
distribute>=0.6.24
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user