Return the real error message, not "label"
This commit is contained in:
parent
12d26a64a9
commit
59b573cc8e
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class ColissimoBackend(BaseBackend, CapParcel):
|
|||
p = Parcel(_id)
|
||||
label = data['message']
|
||||
if data['error']:
|
||||
raise UserError(u"label")
|
||||
raise UserError(label)
|
||||
p.info = label
|
||||
# TODO, need to know the delivery message
|
||||
if u"remis au gardien ou" in label or u"Votre colis est livré" in label:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue