Define exposed API for django_gpg exceptions
This commit is contained in:
@@ -14,11 +14,7 @@ import gnupg
|
|||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from .exceptions import (
|
from .exceptions import * # NOQA
|
||||||
GPGException, GPGVerificationError, GPGSigningError, GPGDecryptionError,
|
|
||||||
KeyDeleteError, KeyGenerationError, KeyFetchingError, KeyDoesNotExist,
|
|
||||||
KeyImportError
|
|
||||||
)
|
|
||||||
from .literals import KEY_TYPES
|
from .literals import KEY_TYPES
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
__all__ = (
|
||||||
|
'GPGException', 'GPGVerificationError', 'GPGSigningError',
|
||||||
|
'GPGDecryptionError', 'KeyDeleteError', 'KeyGenerationError',
|
||||||
|
'KeyFetchingError', 'KeyDoesNotExist', 'KeyImportError'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class GPGException(Exception):
|
class GPGException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user