diff options
author | Jinwei Zhao <[email protected]> | 2017-01-31 21:36:21 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2017-02-01 21:41:54 +0800 |
commit | 105498f501ed48145ba21470badc7fdcddcdd10c (patch) | |
tree | 363b7077494806339a37a76630a11308d9689100 /ingrex | |
parent | 94b20af64c9e0826b9cab3433873d689e6e3d4f7 (diff) | |
download | COMM2TG-105498f501ed48145ba21470badc7fdcddcdd10c.tar.gz |
fix loop
Diffstat (limited to 'ingrex')
-rwxr-xr-x | ingrex/intel.py | 2 |
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 |