
from django.core.exceptions import ImproperlyConfigured

from email_extras.settings import USE_GNUPG


__version__ = "0.1.0"

if USE_GNUPG:
	try:
		import gnupg
	except ImportError:
		raise ImproperlyConfigured, "Could not import gnupg"


from email_extras.settings import USE_GNUPG


__version__ = "0.1.0"

if USE_GNUPG:
    try:
        import gnupg
    except ImportError:
        try:
            from django.core.exceptions import ImproperlyConfigured
            raise ImproperlyConfigured, "Could not import gnupg"
        except ImportError:
            pass



Fix to allow version number to be imported without dependencies being installed.
Fix to allow version number to be imported without dependencies being installed.
