mirror of
https://github.com/Yubico/yubiadmin.git
synced 2025-02-26 23:54:26 +01:00
Incorrect usage of imp.
This commit is contained in:
parent
4ac015e0e6
commit
c811f30fb4
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user