diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-01 19:24:05 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-01 19:24:05 +0100 |
commit | 66417e0010546b8c2ab32d4fa3a684262185dec3 (patch) | |
tree | 7a7af478559e610593dc28ec963ff8aa855e05e1 /modules | |
parent | c4846110c76996c84f79eb98d8b25a007cf6d5a0 (diff) |
tracking: Fixed easypost tracker list returning a dict.
easypost.Tracker.all() somehow returns a dict. For now, just fetch the
'trackers' key from the result.
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/tracking.py | 2 |
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) |