Skip to content

Commit 747e9be

Browse files
committed
Merge pull request #126 from qiniu/develop
Release 6.1.8
2 parents 8ef5f1c + 311d724 commit 747e9be

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
## CHANGE LOG
22

3+
### v6.1.8
4+
5+
2014-08-05 issue [#126](https://github.com/qiniu/python-sdk/pull/126)
6+
- [#125] 网络出错不抛异常
7+
8+
### v6.1.7
9+
10+
2014-07-10 issue [#123](https://github.com/qiniu/python-sdk/pull/123)
11+
- [#121] 上传多host重试
12+
- [#122] 修改上传域名
13+
314
### v6.1.6
415

516
2014-06-30 issue [#118](https://github.com/qiniu/python-sdk/pull/118)

Diff for: qiniu/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
'''
88

99
# -*- coding: utf-8 -*-
10-
__version__ = '6.1.7'
10+
__version__ = '6.1.8'

Diff for: qiniu/rpc.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ def call_with(self, path, body, content_type=None, content_length=None):
4444
if content_length is not None:
4545
header["Content-Length"] = content_length
4646

47-
resp = self.round_tripper("POST", path, body, header)
4847
try:
48+
resp = self.round_tripper("POST", path, body, header)
4949
ret = resp.read()
5050
ret = json.loads(ret)
51-
except IOError, e:
52-
return None, e
5351
except ValueError:
52+
# ignore empty body when success
5453
pass
54+
except Exception, e:
55+
return None, str(e)+path, 0
5556

5657
if resp.status >= 400:
5758
err_msg = ret if "error" not in ret else ret["error"]

0 commit comments

Comments
 (0)