added extra except to try except on line 128