summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/tracking.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index 8995fdf..0f3ae22 100644
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -364,7 +364,11 @@ class Module:
target = target.encode('utf-8')
removed = False
tm = tracking_modules[consignment.type]()
- package_results = tm.track(consignment.code) or []
+ try:
+ package_results = tm.track(consignment.code) or []
+ except NoPackageFound as e:
+ # ignore
+ return
for data in package_results:
try:
package = session.query(Package).filter(and_(Package.consignment_id == consignment.id, Package.code == data.code)).one()