Changed order of try/except and changed t += to t = t +