wrapped assignment in a try catch for setting user