Skip to content

Commit edfa2f0

Browse files
fix rpc response content issue
1 parent 5fa6cc4 commit edfa2f0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

utils/request.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,10 @@ def make_post_request(endpoint_uri, method, params, data, *args, **kwargs):
2626
session = _get_session(endpoint_uri, method, params, kwargs)
2727
response = session.post(endpoint_uri, data=data, *args, **kwargs)
2828
response.raise_for_status()
29-
30-
return response.cb_context
29+
#Ôö¼ÓһЩ¼æÈÝÐÔÂß¼­
30+
if hasattr(response,"cb_context"):
31+
return response.cb_context
32+
if hasattr(response, "context"):
33+
return response.context
34+
if hasattr(response, "content"):
35+
return response.content

0 commit comments

Comments
 (0)