1
0
mirror of https://github.com/Yubico/yubiadmin.git synced 2025-02-27 08:54:15 +01:00

Incorrect usage of imp.

This commit is contained in:
Dain Nilsson 2013-11-21 14:55:50 +01:00
parent 4ac015e0e6
commit c811f30fb4

View File

@ -48,7 +48,11 @@ __all__ = [
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
YUBIAUTH_INSTALLED = imp.find_module('yubiauth') try:
imp.find_module('yubiauth')
YUBIAUTH_INSTALLED = True
except ImportError:
YUBIAUTH_INSTALLED = False
YubiAuth = None YubiAuth = None
AUTH_CONFIG_FILE = '/etc/yubico/auth/yubiauth.conf' AUTH_CONFIG_FILE = '/etc/yubico/auth/yubiauth.conf'