Skip to content

Commit

Permalink
Fixed script to clean labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jssuzanne committed Jun 3, 2019
1 parent 29b185a commit aba54aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

1.2.1
-----

Fixed
~~~~~

* script to update label

1.2.0 (2019-01-16)
------------------

Expand Down
2 changes: 1 addition & 1 deletion anyblok_delivery/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def update_labels_status():
query = query.filter(Shipment.status.in_(status))
for ship in query.all():
try:
ship.Delivery.Shipment.get_label_status()
ship.get_label_status()
except Exception:
logger.exception('failed to get label')

Expand Down

0 comments on commit aba54aa

Please sign in to comment.