mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Start factoring out common backend functionality
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
import json
|
||||
from requests import HTTPError
|
||||
|
||||
@@ -67,6 +68,10 @@ class AnymailError(Exception):
|
||||
return description
|
||||
|
||||
|
||||
class AnymailImproperlyConfigured(AnymailError, ImproperlyConfigured):
|
||||
"""Exception for configuration problems"""
|
||||
|
||||
|
||||
class AnymailAPIError(AnymailError):
|
||||
"""Exception for unsuccessful response from ESP's API."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user