correct error handling

NotFound is the exception you meant here.