As above, the get_object_or_404 looks to remove the need for the try/except.