About the error you can accept the error . You can try the proposed change to see if it works for you.
If you do not want to try, or it does not work, do this:
{% cycle 'white' 'black' as divcolors %}
{% for o in something %}
{% for c in o %}
<div class="{% cycle divcolors %}"></div>
{% endfor %}
{% endfor %}
, , ( , ).