summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/tracking.py4
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()