Define exposed API for django_gpg exceptions

This commit is contained in:
Roberto Rosario
2015-04-04 23:30:27 -04:00
parent 73a24b71b3
commit 94f8d8700e
2 changed files with 8 additions and 5 deletions

View File

@@ -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__)

View File

@@ -1,3 +1,10 @@
__all__ = (
'GPGException', 'GPGVerificationError', 'GPGSigningError',
'GPGDecryptionError', 'KeyDeleteError', 'KeyGenerationError',
'KeyFetchingError', 'KeyDoesNotExist', 'KeyImportError'
)
class GPGException(Exception): class GPGException(Exception):
pass pass