toulouse_axel: fix xml validation to work with xmlschema 1.0.18 (#38708)
gitea-wip/passerelle/pipeline/head There was a failure building this commit Details
gitea/passerelle/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Lauréline Guérin 2019-12-25 11:16:44 +01:00 committed by Thomas NOEL
parent e1e9472304
commit 537864abd8
1 changed files with 4 additions and 1 deletions

View File

@ -192,7 +192,10 @@ class Operation(object):
def __call__(self, resource, request_data):
client = resource.soap_client()
serialized_request = self.request_converter.encode(request_data)
try:
serialized_request = self.request_converter.encode(request_data)
except xmlschema.XMLSchemaValidationError as e:
raise AxelError('invalid request %s' % str(e))
indent(serialized_request)
serialized_request = ET.tostring(serialized_request)
try: