Skip to content

Commit

Permalink
Errata release 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Jun 30, 2015
1 parent d9671bc commit 8f241df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.3.1 (2015-06-30)
===================
This is an errata release.

v1.3.0 (2015-06-30)
===================
* BACKWARDS-INCOMPATIBLE: Drop support for Python<2.7
Expand Down
2 changes: 1 addition & 1 deletion push_notifications/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

__author__ = "Jerome Leclanche"
__email__ = "[email protected]"
__version__ = "1.3.0"
__version__ = "1.3.1"


class NotificationError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion push_notifications/gcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _gcm_send_json(registration_ids, data, **kwargs):
ids_to_remove = []
throw_error = 0
for index, er in enumerate(result["results"]):
if er.get("error", "none") in device_errors:
if er.get("error", "none") in ("NotRegistered", "InvalidRegistration"):
ids_to_remove.append(values["registration_ids"][index])
elif er.get("error", "none") is not "none":
throw_error = 1
Expand Down

0 comments on commit 8f241df

Please sign in to comment.