From 94f8d8700ef010b776b831a648bf95d03d2518e9 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 4 Apr 2015 23:30:27 -0400 Subject: [PATCH] Define exposed API for django_gpg exceptions --- mayan/apps/django_gpg/api.py | 6 +----- mayan/apps/django_gpg/exceptions.py | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/mayan/apps/django_gpg/api.py b/mayan/apps/django_gpg/api.py index a577c455ab..2b9baecadd 100644 --- a/mayan/apps/django_gpg/api.py +++ b/mayan/apps/django_gpg/api.py @@ -14,11 +14,7 @@ import gnupg from django.utils.translation import ugettext_lazy as _ -from .exceptions import ( - GPGException, GPGVerificationError, GPGSigningError, GPGDecryptionError, - KeyDeleteError, KeyGenerationError, KeyFetchingError, KeyDoesNotExist, - KeyImportError -) +from .exceptions import * # NOQA from .literals import KEY_TYPES logger = logging.getLogger(__name__) diff --git a/mayan/apps/django_gpg/exceptions.py b/mayan/apps/django_gpg/exceptions.py index 52e62315b0..e9473a61bf 100644 --- a/mayan/apps/django_gpg/exceptions.py +++ b/mayan/apps/django_gpg/exceptions.py @@ -1,3 +1,10 @@ +__all__ = ( + 'GPGException', 'GPGVerificationError', 'GPGSigningError', + 'GPGDecryptionError', 'KeyDeleteError', 'KeyGenerationError', + 'KeyFetchingError', 'KeyDoesNotExist', 'KeyImportError' +) + + class GPGException(Exception): pass