Return the real error message, not "label"

This commit is contained in:
Florent 2014-09-22 16:48:02 +02:00
commit 59b573cc8e

View file

@ -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: