def validate_log_level(value):
    """Validate a log level from a string value. Returns a constant from
    the :mod:`logging` module.
    """
    try:
        return getattr(logging, value)
    except AttributeError:
        raise ValidationError(value % "Unknown log level: %s")
dataset/ETHPy150Open dnephin/PyStaticConfiguration/staticconf/validation.py/validate_log_level/swapped operands of `%`