List not appending in loop

Just having a cursory look, but you have a line in the while loop that says:

dailyStorageArr.pop(0)

This will remove the first item from that list. If this is hit every time through the loop, the list will never have more than one item. If I remove that line, the list accumulates and crashes somewhere else later on.

I hope this helps you to make progress as you debug.

3 Likes