Skip to content
This repository has been archived by the owner on Feb 11, 2018. It is now read-only.

Commit

Permalink
Broken pipe or any other exception can take place. Raise Server error
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Oct 12, 2017
1 parent 084194b commit 8c6d47d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pushy/dispatchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def _send(self, token, notification_payload):
APNSUnknownError):
raise PushServerException()

except:
raise PushServerException()

def send(self, device_key, payload):
if not self._client:
self.establish_connection()
Expand Down Expand Up @@ -169,6 +172,9 @@ def _send(self, device_key, payload):
GCMDeviceMessageRateExceededError):
raise PushServerException()

except:
raise PushServerException()

def send(self, device_key, payload):
return self._send(device_key, payload)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='Django-Pushy',
version='1.0.1',
version='1.0.2',
author='Rakan Alhneiti',
author_email='[email protected]',

Expand Down

0 comments on commit 8c6d47d

Please sign in to comment.