nanterre: fix error message when tag is wrong in saga responses
This commit is contained in:
parent
2e9c4b838a
commit
a043516427
|
@ -188,7 +188,7 @@ class Saga(object):
|
|||
return None, error
|
||||
|
||||
if tree.tag != 'url':
|
||||
return None, 'tag is not error'
|
||||
return None, 'tag is not url'
|
||||
|
||||
return tree.text, None
|
||||
|
||||
|
@ -204,7 +204,7 @@ class Saga(object):
|
|||
return None, error
|
||||
|
||||
if tree.tag != 'ok':
|
||||
return None, 'tag is not error'
|
||||
return None, 'tag is not ok'
|
||||
result = {
|
||||
'code_tiers': tree.attrib.get('code_tiers'),
|
||||
'etat': tree.attrib['etat'],
|
||||
|
|
Loading…
Reference in New Issue