remove useless try block