def find_unique_value_error(exc_detail):
    """Find unique value error in exception details."""
    for field, errors in exc_detail.items():  # noqa: B007
        for error in errors:
            if error.code == 'unique':
                return error

    return None