MCPcopy Create free account
hub / github.com/Accenture/mcp-bench / sync_wrapper

Function sync_wrapper

utils/error_handler.py:56–64  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

54
55 @functools.wraps(func)
56 def sync_wrapper(*args, **kwargs) -> Any:
57 try:
58 return func(*args, **kwargs)
59 except Exception as e:
60 logger.log(log_level, f"ERROR in {operation_name}: {e}")
61 logger.log(log_level, f"Full traceback: {traceback.format_exc()}")
62 if reraise:
63 raise
64 return None
65
66 # Return appropriate wrapper based on function type
67 import inspect

Callers

nothing calls this directly

Calls 1

record_errorMethod · 0.80

Tested by

no test coverage detected