summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmodules/tracking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index 917c960..e7f9c9d 100755
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -328,7 +328,7 @@ class EasypostModule:
code = self.splitcode(code)
try:
- tracker = (t for t in easypost.Tracker.all() if t.tracking_code == code).next()
+ tracker = (t for t in easypost.Tracker.all()['trackers'] if t.tracking_code == code).next()
except StopIteration:
tracker = easypost.Tracker.create(tracking_code = code, carrier = self.easypost_carrier)