def error_wrap(func):
    def f(*args, **kw):
        code = func(*args, **kw)
        check_error(code, context="partner")
    return f
Closes .serial
dataset/ETHPy150Open gijzelaerr/python-snap7/snap7/partner.py/error_wrap--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/aio/serial/serialing.py/SerialNb.close