I don't think you can assign to t-1. Something like:
if t == 1861: continue if t == 1862: previous_t = 1860 else: previous_t = t - 1