Don't stuff everything in a naked except

'model' variable reference on line 86 was failing because it was never found in settings