MCPcopy Create free account
hub / github.com/Boris-code/feapder / run_func

Function run_func

feapder/utils/tools.py:129–136  ·  view source on GitHub ↗
(*args, **kw)

Source from the content-addressed store, hash-verified

127
128 @functools.wraps(func) # 将函数的原来属性付给新函数
129 def run_func(*args, **kw):
130 callfunc = None
131 try:
132 callfunc = func(*args, **kw)
133 except Exception as e:
134 log.error(module_name + ": " + func.__name__ + " - " + str(e))
135 traceback.print_exc()
136 return callfunc
137
138 return run_func
139 except Exception as e:

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected