Why is this code inside a try block? It can't fail.