def _get_key_from_module(mod, key, default):
    if hasattr(mod, key):
        value = getattr(mod, key, default)
    else:
        value = getattr(mod, key.upper() % 'LEONARDO_%s', default)
    return value
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/utils/settings.py/_get_key_from_module/swapped operands of `%`