You can change this to:

```ruby
distributor = Distributor.find(distributor_id)
```

#find automatically throws a `ActiveRecord::RecordNotFound` error.