diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tracking.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/tracking.py b/modules/tracking.py index c86ef46..c7d7d11 100644 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -240,6 +240,8 @@ class TollpostModule(TrackingModule): location = lastevent['location'].get('name') or lastevent['location'].get('city') if location: status = '%s (%s)' % (event, location) + else: + status = event results.append(TrackingResult(code, date, status.encode('utf-8'), delivered)) return results @@ -274,6 +276,8 @@ class PostNordModule(TrackingModule): location = lastevent['location'].get('name') or lastevent['location'].get('city') if location: status = '%s (%s)' % (event, location) + else: + status = event results.append(TrackingResult(code, date, status.encode('utf-8'), delivered)) return results |