Skip to content

Commit cc8053d

Browse files
committed
异常处理优化
1 parent 6de3251 commit cc8053d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rongcloud/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def send_status_message(self, from_user_id, to_user_ids, object_name, content, v
280280
self._check_param(is_include_sender, int, '0~1')
281281
return self._http_post(url, self._render(param_dict, format_str))
282282
except ParamException as e:
283-
return json.dumps(e.info)
283+
return json.loads(str(e.info))
284284

285285

286286
class Group(Module):
@@ -423,7 +423,7 @@ def send_status_message(self, from_user_id, to_group_ids, object_name, content,
423423
self._check_param(is_include_sender, int, '0~1')
424424
return self._http_post(url, self._render(param_dict, format_str))
425425
except ParamException as e:
426-
return json.dumps(e.info)
426+
return json.loads(str(e.info))
427427

428428

429429
class Chatroom(Module):

0 commit comments

Comments
 (0)