Skip to content

Commit 8f241df

Browse files
committed
Errata release 1.3.1
1 parent d9671bc commit 8f241df

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v1.3.1 (2015-06-30)
2+
===================
3+
This is an errata release.
4+
15
v1.3.0 (2015-06-30)
26
===================
37
* BACKWARDS-INCOMPATIBLE: Drop support for Python<2.7

push_notifications/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
__author__ = "Jerome Leclanche"
33
__email__ = "[email protected]"
4-
__version__ = "1.3.0"
4+
__version__ = "1.3.1"
55

66

77
class NotificationError(Exception):

push_notifications/gcm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _gcm_send_json(registration_ids, data, **kwargs):
108108
ids_to_remove = []
109109
throw_error = 0
110110
for index, er in enumerate(result["results"]):
111-
if er.get("error", "none") in device_errors:
111+
if er.get("error", "none") in ("NotRegistered", "InvalidRegistration"):
112112
ids_to_remove.append(values["registration_ids"][index])
113113
elif er.get("error", "none") is not "none":
114114
throw_error = 1

0 commit comments

Comments
 (0)