I think it's acceptable because if the exception is raised, the API key is invalid and useless.