Unresolved reference after try/catch added
I have the following code I’m trying to debug and want to add a try/catch block to see why it is crashing. When I add that though, it gives me an unresolved reference a few lines down. What can I do to get around that, please?