Skip to content

Commit

Permalink
Move base NotificationError to push_notifications.exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Feb 10, 2018
1 parent c4785a3 commit f625921
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 0 additions & 4 deletions push_notifications/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@


__version__ = pkg_resources.require("django-push-notifications")[0].version


class NotificationError(Exception):
pass
3 changes: 2 additions & 1 deletion push_notifications/apns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from apns2 import errors as apns2_errors
from apns2 import payload as apns2_payload

from . import NotificationError, models
from . import models
from .exceptions import NotificationError
from .conf import get_manager


Expand Down
3 changes: 3 additions & 0 deletions push_notifications/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

class NotificationError(Exception):
pass
2 changes: 1 addition & 1 deletion push_notifications/gcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

from django.core.exceptions import ImproperlyConfigured

from . import NotificationError
from .conf import get_manager
from .exceptions import NotificationError
from .models import GCMDevice


Expand Down
2 changes: 1 addition & 1 deletion push_notifications/webpush.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pywebpush import WebPushException, webpush

from . import NotificationError
from .exceptions import NotificationError
from .conf import get_manager


Expand Down
2 changes: 1 addition & 1 deletion push_notifications/wns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

from django.core.exceptions import ImproperlyConfigured

from . import NotificationError
from .conf import get_manager
from .exceptions import NotificationError
from .settings import PUSH_NOTIFICATIONS_SETTINGS as SETTINGS


Expand Down

0 comments on commit f625921

Please sign in to comment.