diff --git a/pyapns/model.py b/pyapns/model.py index 3af9980..d7e471b 100644 --- a/pyapns/model.py +++ b/pyapns/model.py @@ -156,7 +156,7 @@ def remember_recent_notifications(self, notifications): if len(self.recent_notification_idents) >= self.recent_notifications_to_keep: removed_ident = self.recent_notification_idents.popleft() removed_note = self.recent_notifications.pop(removed_ident) - self.internal_idents.pop(removed_note.internal_ident) + self.internal_idents.pop(removed_note.internal_identifier) # create a new internal identifier and map the notification to it internal_ident = self.get_next_ident()