It would be good to catch a more specific exception.