Wechat Exception Module for Python.
Project description
Wechat Exception Module for Python.
Installation
pip install pywe-exception
Usage
In [1]: from pywe_exception import WeChatException, WeChatPayException In [2]: raise WeChatException({"errcode": 40125, "errmsg": "invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]"}) --------------------------------------------------------------------------- WeChatException Traceback (most recent call last) <ipython-input-2-793779f73857> in <module>() ----> 1 raise WeChatException({"errcode": 40125, "errmsg": "invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]"}) WeChatException: {'errcode': 40125, 'errmsg': 'invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]'}
Method
class WeChatException(Exception): """ WeChatException """ class WeChatPayException(Exception): """ WeChatPayException """
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywe-exception-1.0.2.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for pywe_exception-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263cae45e07c18bb8fe5fc06e3f852446c9116662ff1dd88d78555fe36313b5f |
|
MD5 | ef14695ce017247d01abbd6ed3439f27 |
|
BLAKE2b-256 | 10e5e39ebeb2122f47c0af0e45a5192945dae93046f7e582ef6e0feee9f060e5 |