try except for route_handler