Remove the try/except from here, and put it in the views