summaryrefslogtreecommitdiffstats
path: root/share/common/utils
diff options
context:
space:
mode:
Diffstat (limited to 'share/common/utils')
-rw-r--r--share/common/utils/restcall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/common/utils/restcall.py b/share/common/utils/restcall.py
index 05788bc9..ec3abb30 100644
--- a/share/common/utils/restcall.py
+++ b/share/common/utils/restcall.py
@@ -80,7 +80,7 @@ def _call_req(base_url, user, passwd, auth_type,
headers=headers)
resp_status, resp_body = \
resp['status'], codecs.decode(
- resp_content, 'UTF-8')
+ resp_content, 'UTF-8') if resp_content else None
if resp_status in status_ok_list:
ret = [0, resp_body, resp_status]
else: