Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) #108: Missing _sent_notifications #109

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matiboy
Copy link

@matiboy matiboy commented Jan 23, 2015

Define self._sent_notifications even when not using enhanced. Problem is that _sent_notifications is used in send_notification_multiple since f33faf7
Fixes #108

Define self._sent_notifications

Fixes djacobs#104
@jimhorng
Copy link
Collaborator

@matiboy , if not using enhanced, it's meaningless to store sent_notifications since APNS will not respond error on fail-to-sent notification.
So I suggest better to remove all enhanced-related logic(e.g. sent_notifications) from non-enhanced code.
FYR.

@matiboy
Copy link
Author

matiboy commented Jan 26, 2015

@jimhorng Ok makes sense. So now it's checking whether we're using enhanced before adding the results to the queue (which was causing the original error). Thanks

@jimhorng
Copy link
Collaborator

@djacobs , I think this one is good enough to be merged 👍

@jimhorng jimhorng mentioned this pull request Apr 17, 2015
@djacobs
Copy link
Owner

djacobs commented Apr 20, 2015

Thanks @jimhorng - will review shortly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'GatewayConnection' object has no attribute '_sent_notifications'
3 participants