Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-10-03 09:07:24 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-10-03 09:07:24 (GMT)
commitd8db557cf9edd36e7400ddee01c62aaa646ecf4b (patch)
treecd33ab25dc32ba15d99a85e54af7d0fc8ce491cf
parent8a76552620edf7c259f5b79507e93d752b048326 (diff)
Remote commands might return not only json
-rw-r--r--sugar_network/toolkit/http.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sugar_network/toolkit/http.py b/sugar_network/toolkit/http.py
index 3fc7259..2241183 100644
--- a/sugar_network/toolkit/http.py
+++ b/sugar_network/toolkit/http.py
@@ -171,7 +171,10 @@ class Client(object):
if response is not None:
response.content_type = reply.headers['Content-Type']
- return self._decode_reply(reply)
+ result = self._decode_reply(reply)
+ if result is None:
+ result = reply.content
+ return result
def download(self, url_path, out_path, seqno=None, extract=False):
if isdir(out_path):