From c353232128bb862f6222be7774fd32a6f4d591be Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 18 Feb 2012 23:45:45 +0100 Subject: tracking: Allow checking for stale consignments on non-propagating package errors. --- modules/tracking.py | 4 ++-- 1 file 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() -- cgit v1.2.3