Thanks @sunnyson.
I was actually doing that already, but I see my example code snippet was confusing.
What ended up working was moving the code out of the try catch.
Thanks @sunnyson.
I was actually doing that already, but I see my example code snippet was confusing.
What ended up working was moving the code out of the try catch.