Skip to content

Commit 1b6aed2

Browse files
committed
Merge pull request #54 from javaguirre/readme-exceptions-fix
We should remove registration ids also when InvalidRegistration coming from GCM
2 parents e1a7abb + 5948d62 commit 1b6aed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Error handling
8181
if 'errors' in response:
8282
for error, reg_ids in response['errors'].items():
8383
# Check for errors and act accordingly
84-
if error is 'NotRegistered':
84+
if error in ['NotRegistered', 'InvalidRegistration']:
8585
# Remove reg_ids from database
8686
for reg_id in reg_ids:
8787
entity.filter(registration_id=reg_id).delete()

0 commit comments

Comments
 (0)