Moving error handling to use get_object_or_404 for more explicit workflow