only change I'd make here is writing 'if exception.nil?' instead of 'if exception'. Though I admit it's a v minor thing.