Commit 59b573cc authored by Florent Fourcot's avatar Florent Fourcot

Return the real error message, not "label"

parent 12d26a64
......@@ -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:
......
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