expephalon-playsms/core/modules/otp.py

13 lines
322 B
Python
Raw Normal View History

import importlib
from django.conf import settings
providers = []
for module in settings.EXPEPHALON_MODULES:
try:
moo = importlib.import_module(f"{module}.otp")
for provider in moo.OTPPROVIDERS:
providers.append(provider)
except (AttributeError, ModuleNotFoundError):
continue