MCPcopy Create free account
hub / github.com/doraemonext/wechat-python-sdk / __str__

Method __str__

wechat_sdk/exceptions.py:24–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.errmsg = errmsg
23
24 def __str__(self):
25 if six.PY2:
26 return to_binary('{code}: {msg}'.format(code=self.errcode, msg=self.errmsg))
27 else:
28 return to_text('{code}: {msg}'.format(code=self.errcode, msg=self.errmsg))
29
30
31class WechatSDKException(WechatException):

Callers 1

Calls 2

to_binaryFunction · 0.90
to_textFunction · 0.90

Tested by 1