def large_order_promo(order):
    distinct_items = {item.product for item in order.cart}
    if len(distinct_items) >= 10:
        return order.total() * .07
    return 0

# BEGIN STRATEGY_BEST
Delegate an error call to the underlying logger.
dataset/ETHPy150Open fluentpython/example-code/06-dp-1class-func/strategy_best.py/large_order_promo--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/log.py/InstanceLogger.error