I changed it to catch a more specific exception.