fixed bug where we had the try except block in the wrong position.