From 9f7a0e690775e1feba2fc89a3e2c57d332569ae3 Mon Sep 17 00:00:00 2001 From: militarpancho Date: Thu, 9 Mar 2017 14:21:22 +0100 Subject: [PATCH] Added timeout meaningCloud. This should fix #5 --- sentiment-meaningCloud/sentiment-meaningCloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentiment-meaningCloud/sentiment-meaningCloud.py b/sentiment-meaningCloud/sentiment-meaningCloud.py index 1cc830e..b70c1ce 100644 --- a/sentiment-meaningCloud/sentiment-meaningCloud.py +++ b/sentiment-meaningCloud/sentiment-meaningCloud.py @@ -24,7 +24,7 @@ class DaedalusPlugin(SentimentPlugin): 'txt': txt, 'src': 'its-not-a-real-python-sdk' } - r = requests.post(api, params=parameters) + r = requests.post(api, params=parameters, timeout=3) value = r.json().get('score_tag', None) if not value: