We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1a7abb + 5948d62 commit 1b6aed2Copy full SHA for 1b6aed2
README.rst
@@ -81,7 +81,7 @@ Error handling
81
if 'errors' in response:
82
for error, reg_ids in response['errors'].items():
83
# Check for errors and act accordingly
84
- if error is 'NotRegistered':
+ if error in ['NotRegistered', 'InvalidRegistration']:
85
# Remove reg_ids from database
86
for reg_id in reg_ids:
87
entity.filter(registration_id=reg_id).delete()
0 commit comments