def valid_email_or_none(email):
    ret = None
    try:
        if email:
            validate_email(email)
            if EmailField().max_length <= len(email):
                ret = email
    except ValidationError:
        pass
    return ret
dataset/ETHPy150Open pennersr/django-allauth/allauth/utils.py/valid_email_or_none/swapped operands of `<=`