def error_wrap(func):
    def f(*args, **kw):
        code = func(*args, **kw)
        check_error(code, context="partner")
    return f
Parses a s7 error code returned the decorated function.
dataset/ETHPy150Open gijzelaerr/python-snap7/snap7/partner.py/error_wrap