Logging+error when not get label from seur
This commit is contained in:
parent
b8eb53dd55
commit
62501c3253
|
@ -160,6 +160,10 @@ class ShipmentOut:
|
|||
'Generated tmp label %s' % (temp.name))
|
||||
temp.close()
|
||||
labels.append(temp.name)
|
||||
else:
|
||||
message = 'Not label %s shipment available from Seur.' % (shipment.code)
|
||||
errors.append(message)
|
||||
logging.getLogger('seurvalencia').error(message)
|
||||
|
||||
if error:
|
||||
logging.getLogger('seurvalencia').error(
|
||||
|
|
Loading…
Reference in New Issue