From 95310eadeee4815ff4d70191b55f39f1784bcacd Mon Sep 17 00:00:00 2001 From: Syed Habib M Date: Tue, 7 Jul 2015 18:12:59 +0530 Subject: [PATCH] fix MissingRegistration --- gcm/gcm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcm/gcm.py b/gcm/gcm.py index e8c9c36..83db02f 100644 --- a/gcm/gcm.py +++ b/gcm/gcm.py @@ -225,6 +225,8 @@ def raise_error(self, error): "A Registration ID is tied to a certain group of senders") elif error == 'MessageTooBig': raise GCMMessageTooBigException("Message can't exceed 4096 bytes") + elif error == 'MissingRegistration': + raise GCMMissingRegistrationException("Missing registration_ids") def handle_plaintext_response(self, response):