Commit def6151d authored by agb80's avatar agb80

style(flake): corrige los estilos de flake

parent b60c5daf
Pipeline #5868 failed with stage
in 2 minutes and 20 seconds
......@@ -82,9 +82,10 @@ class ParamsPac(models.Model):
def validate_response(cls, soap_response):
"""if response.status_code not 200 then raise Exception"""
if str(soap_response.status_code) not in "200":
raise Exception("Bad response: " + str(soap_response.status_code) +
"," +
soap_response.content)
raise Exception(
"Bad response: " + str(soap_response.status_code) +
"," + soap_response.content
)
@api.one
def sign_file(self, fdata=None):
......@@ -202,7 +203,7 @@ class ParamsPac(models.Model):
self.validate_response(response)
res = xmltodict.parse(response.text)
_logger.debug(res)
# Procesar los resultados obtenidos del PAC
try:
resultado = res["soapenv:Envelope"]["soapenv:Body"][
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment