Put tokenData assignment into try catch