aboutsummaryrefslogtreecommitdiff
path: root/ingrex
diff options
context:
space:
mode:
authorJinwei Zhao <[email protected]>2017-01-31 21:36:21 +0800
committerJinwei Zhao <[email protected]>2017-02-01 21:41:54 +0800
commit105498f501ed48145ba21470badc7fdcddcdd10c (patch)
tree363b7077494806339a37a76630a11308d9689100 /ingrex
parent94b20af64c9e0826b9cab3433873d689e6e3d4f7 (diff)
downloadCOMM2TG-105498f501ed48145ba21470badc7fdcddcdd10c.tar.gz
fix loop
Diffstat (limited to 'ingrex')
-rwxr-xr-xingrex/intel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ingrex/intel.py b/ingrex/intel.py
index 2cc4e7f..ca48bf0 100755
--- a/ingrex/intel.py
+++ b/ingrex/intel.py
@@ -43,7 +43,7 @@ class Intel(object):
43 count = 0 43 count = 0
44 while count < 3: 44 while count < 3:
45 try: 45 try:
46 request = self.session.post(url, data=json.dumps(payload), headers=self.headers, timeout=(10, 60)) 46 request = self.session.post(url, data=json.dumps(payload), headers=self.headers, timeout=300)
47 return request.json()['result'] 47 return request.json()['result']
48 except requests.ConnectionError: 48 except requests.ConnectionError:
49 raise IntelException 49 raise IntelException
Powered by cgit v1.2.3 (git 2.41.0)