Add an exception if no api key is provided.