MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / inner

Function inner

pywebio/io_ctrl.py:191–202  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

189
190 @wraps(func)
191 def inner(*args, **kwargs):
192 try:
193 return func(*args, **kwargs)
194 except Exception:
195 # 发生异常,安全地释放 Output 对象
196 params = [content_param] if isinstance(content_param, str) else content_param
197 bound = sig.bind(*args, **kwargs).arguments
198 for param in params:
199 if bound.get(param):
200 Output.safely_destruct(bound.get(param))
201
202 raise
203
204 return inner
205

Callers

nothing calls this directly

Calls 2

safely_destructMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…