FIX: allow access to sentimenthq API

This commit is contained in:
Madison May
2015-07-01 15:33:37 -04:00
parent 08d825a004
commit 1186a52c6f
-5
View File
@@ -29,11 +29,6 @@ def api_handler(arg, cloud, api, url_params = {"batch":False, "api_key":None}, *
if apis:
url += "&apis=%s" % ",".join(apis)
# private beta
if host == config.PUBLIC_API_HOST:
if (api == 'sentimenthq') or ('sentimenthq' in apis):
raise IndicoError("The high quality sentiment API is currently in private beta.")
response = requests.post(url, data=json_data, headers=JSON_HEADERS)
if response.status_code == 503 and cloud != None:
raise IndicoError("Private cloud '%s' does not include api '%s'" % (cloud, api))