# Path: wxpy/exceptions.py
# class ResponseError(Exception):
#     """
#     当 BaseResponse 的返回值不为 0 时抛出的异常
#     """
# 
#     def __init__(self, err_code, err_msg):
#         super(ResponseError, self).__init__(
#             'err_code: {}; err_msg: {}'.format(err_code, err_msg))
#         self.err_code = err_code
#         self.err_msg = err_msg


import logging
import time
from functools import wraps
from wxpy.exceptions import ResponseError
    from wxpy.api.bot import Bot
    from wxpy.api.chats import Chats, User
# coding: utf-8
from __future__ import unicode_literals



logger = logging.getLogger(__name__)


def dont_raise_response_error(func):
    """
    装饰器：用于避免被装饰的函数在运行过程中抛出 ResponseError 错误
    """

    @wraps(func)
    def wrapped(*args, **kwargs):
        try:
            return func(*args, **kwargs)

# Path: wxpy/exceptions.py
# class ResponseError(Exception):
#     """
#     当 BaseResponse 的返回值不为 0 时抛出的异常
#     """
# 
#     def __init__(self, err_code, err_msg):
#         super(ResponseError, self).__init__(
#             'err_code: {}; err_msg: {}'.format(err_code, err_msg))
#         self.err_code = err_code
#         self.err_msg = err_msg


# Path: wxpy/utils/tools.py
import logging
import time
from functools import wraps
from wxpy.exceptions import ResponseError
    from wxpy.api.bot import Bot
    from wxpy.api.chats import Chats, User

# coding: utf-8
from __future__ import unicode_literals



logger = logging.getLogger(__name__)


def dont_raise_response_error(func):
    """
    装饰器：用于避免被装饰的函数在运行过程中抛出 ResponseError 错误
    """

    @wraps(func)
    def wrapped(*args, **kwargs):
        try:
            return func(*args, **kwargs)

        except ResponseError as e: