mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 16:12:29 +00:00
Added timeout meaningCloud. This should fix #5
This commit is contained in:
parent
241f478a68
commit
9f7a0e6907
@ -24,7 +24,7 @@ class DaedalusPlugin(SentimentPlugin):
|
|||||||
'txt': txt,
|
'txt': txt,
|
||||||
'src': 'its-not-a-real-python-sdk'
|
'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)
|
value = r.json().get('score_tag', None)
|
||||||
if not value:
|
if not value:
|
||||||
|
Loading…
Reference in New Issue
Block a user