diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-02-18 23:45:45 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-02-18 23:45:45 +0100 |
commit | c353232128bb862f6222be7774fd32a6f4d591be (patch) | |
tree | 55a4914f6f88a0957136a187cdc977b378ec1b30 | |
parent | 82d2f6bd1a6f66e9c101ef0a6b98230753bff78c (diff) |
tracking: Allow checking for stale consignments on non-propagating package errors.
-rw-r--r-- | modules/tracking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tracking.py b/modules/tracking.py index 32d83a2..fc723b3 100644 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -375,8 +375,8 @@ class Module: except PackageError as e: if propagate_error: raise e - # ignore - return + # ignore, set results to an empty list so that we can reach the stale check at the end + package_results = [] for data in package_results: try: package = session.query(Package).filter(and_(Package.consignment_id == consignment.id, Package.code == data.code)).one() |