Show More
@@ -41,6 +41,7 b' Config::' | |||
|
41 | 41 | |
|
42 | 42 | from __future__ import absolute_import |
|
43 | 43 | |
|
44 | import contextlib | |
|
44 | 45 | import itertools |
|
45 | 46 | import json |
|
46 | 47 | import operator |
@@ -214,7 +215,8 b' def callconduit(repo, name, params):' | |||
|
214 | 215 | else: |
|
215 | 216 | urlopener = urlmod.opener(repo.ui, authinfo) |
|
216 | 217 | request = util.urlreq.request(url, data=data) |
|
217 |
|
|
|
218 | with contextlib.closing(urlopener.open(request)) as rsp: | |
|
219 | body = rsp.read() | |
|
218 | 220 | repo.ui.debug(b'Conduit Response: %s\n' % body) |
|
219 | 221 | parsed = json.loads(body) |
|
220 | 222 | if parsed.get(r'error_code'): |
General Comments 0
You need to be logged in to leave comments.
Login now