summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/tracking.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index d4a3e10..254c84f 100644
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -361,9 +361,7 @@ class Module:
target = target.encode('utf-8')
removed = False
tm = tracking_modules[consignment.type]()
- package_results = tm.track(consignment.code)
- if not package_results:
- return
+ package_results = tm.track(consignment.code) or []
for data in package_results:
try:
package = session.query(Package).filter(and_(Package.consignment_id == consignment.id, Package.code == data.code)).one()