Python exception handling inside for loop
<p>I am new to Python, and programming in general. While I think this question may be related to my use of exception handling, it might also be due to a general lack of understanding!</p>

<pre><code>for i in range(0, len(dates)):
    try:
        data.append(WUF.getwx(location[j], dates[i])[1])
        continue
    except xml.etree.ElementTree.ParseError:
        #copy last good row of data and use it for the missing day
        fixdata = data[-1] #[1,2,3,4,5,6,7,8,9,10,11]
        fixdata[10] = 'estimated'
        data.append(fixdata)
</code></pre>

<p>When I run the code as written, I get 2 "estimated" lines in <code>data</code>. One for the previous date, and one for the date that is being estimated. If I change the <code>fixdata</code> variable to <code>[1, 2, 3, 4, 5, ...]</code>, then only one line (the intended line for the estimated date) is "estimated".</p>

<p>Any idea what I'm missing here? Thanks!</p>
