Print inside try/catch